Bec_3
2021-09-25 22:55
CrossOrigin注解加上这两个参数,会报以下的错误:
When allowCredentials is true, allowedOrigins cannot contain the special value "*" since that cannot be set on the "Access-Control-Allow-Origin" response header
@CrossOrigin(origins = {" * "}, allowedHeaders="*")
添加
originPatterns = "*"
SpringBoot构建电商基础秒杀项目
49064 学习 · 954 问题
相似问题