When allowCredentials is true, allowedOrigins cannot contain the special value "*"since that cannot be set on the "Access-Control-Allow-Origin" response header.


當allowCredentials為true時,allowedOrigins不能包含特殊值“*”,因為無法在“Access Control Allow Origin”響應頭上設置該值。

To allow credentials to a set of origins, list them explicitly or consider using "allowedOriginPatterns" instead.
要允許一組來源的憑證,請明確列出它們或考慮改用“allowedOriginPatterns”。

springboot升級,舊項目的跨域配置改用allowedOriginPatterns


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM