當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
