原因:CORS 'Access-Control-Allow-Origin' 設定為「*」時不支援使用帳號密碼

翻譯不完整。請協助 翻譯此英文文件

原因

Reason: Credential is not supported if the CORS header ‘Access-Control-Allow-Origin’ is ‘*’

What went wrong?

The CORS request was attempted with the credentials flag set, but the server is configured using the wildcard ("*") as the value of Access-Control-Allow-Origin, which doesn't allow the use of credentials.

To correct this problem on the client side, simply ensure that the credentials flag's value is false when issuing your CORS request.

If, instead, you need to adjust the server's behavior, you'll need to change the value of Access-Control-Allow-Origin to grant access to the origin from which the client is loaded.

參見

文件標籤與貢獻者

此頁面的貢獻者: hms5232
最近更新: hms5232,