when allowcredentials is true, allowedorigins cannot contain the special value "*" since that cannot be set on the "access-control-allow-origin" response header. to allow credentials to a set of origins, list them explicitly or consider using "allowedori
时间: 2023-05-01 07:06:56 浏览: 97
当allowcredentials为true时,allowedorigins不能包含特殊值"*",因为该值无法在"access-control-allow-origin"响应头中设置。要允许特定的来源访问凭据,需要明确列出这些来源,或者考虑使用"allowedori"来设置。
相关问题
java.lang.illegalargumentexception: when allowcredentials is true, allowedorigins cannot contain the special value "*" since that cannot be set on the "access-control-allow-origin" response header. to allow credentials to a set of origins, list them expli
citly or consider using "allowedoriginpatterns" instead.
这是一个Java异常,意思是当设置allowcredentials为true时,allowedorigins不能包含特殊值“*”,因为这个值不能被设置在“access-control-allow-origin”响应头中。如果要允许一组来源的凭据,需要明确列出它们,或者考虑使用“allowedoriginpatterns”代替。
When allowCredentials is true, allowedOrigins cannot contain the special value "*" since that cannot be set on the "Access-Control-Allow-Origin" response header. To allow credentials to a set of origins, list them explicitly or consider using "allowedOrig
insPatterns" instead.
这是一个关于CORS的错误信息。CORS(跨域资源共享)是一种网络安全机制,用于在浏览器和服务器之间共享资源。这个错误信息意味着当设置了 allowCredentials 为 true 时,allowedOrigins 不能包含特殊值 "*",因为这个值无法在 "Access-Control-Allow-Origin" 响应头中设置。为了允许一组来源的凭证,必须将它们明确列出,或者考虑使用 allowedOriginPatterns。
阅读全文