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 "allowedoriginpatterns" instead.
时间: 2023-05-03 20:01:46 浏览: 201
当设置 allowcredentials 为 true 时,allowedorigins 不能包含特殊值“*”,因为它不能在“access-control-allow-origin”响应头中设置。为了允许一组来源的凭证,请明确列出它们或考虑改用“allowedoriginpatterns”代替。
相关问题
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 "allowedori
当allowcredentials为true时,allowedorigins不能包含特殊值"*",因为该值无法在"access-control-allow-origin"响应头中设置。要允许特定的来源访问凭据,需要明确列出这些来源,或者考虑使用"allowedori"来设置。
阅读全文