使用「訪問控制允許來源」多小時的閱讀後,我來到了IIS不支持多個
"Access-Control-Allow-Origin"
頭。我怎樣才能讓多個域在IIS 8
還設置有"*"
值不與允許誤差:
A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'null' is therefore not allowed access.
其他SO問題與解決方案提出了類似this一個或this之一,但我不知道在哪裏我必須改變頭。
我的應用程序是用.NET編寫的,我使用的是IIS 8.5。我的目標是對多個原始域進行CORS請求。我是否必須編寫IHttpModule來處理源頭?
爲什麼你確實需要憑證和多個來源? –
@ErikFunkenbusch因爲一個頁面發出另一個請求,但是如果未通過驗證則不允許。 – webprogrammer
我不明白你的意思......你將不得不更具描述性。 –