[英]How can I change the routing in Angular from outside the scope of the Angular application?
[英]How can I change host header in angular application
我遇到了與漏洞相關的問題,要解決這個問題,我應該使用 SERVER_NAME 而不是主機 header,我可以通過 angular 來解決嗎
不。
客戶端JS無法更改主機header; 它是被禁止的 header 名稱之一。 它的值是根據您請求的 URL 自動確定的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.