首页 > TAG信息列表 > corsConfigurations

allowedOrigins cannot contain the special value "*

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 or

gateway 报错 allowedOrigins cannot contain the special value "*"

  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

gateway 跨域问题解决方案

1.写个配置类CorsConfig (如果不行,可以不写此类,和springcloud的版本有关) package net.youqu.micro.service.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.cors