日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學(xué)無先后,達(dá)者為師

網(wǎng)站首頁 編程語言 正文

credentials to a set of origins, list them explicitly or consider using “allowedOriginPatterns“

作者:飯飯m 更新時(shí)間: 2024-02-27 編程語言

在做gulimall項(xiàng)目時(shí)候

1、異常信息

Caused by: 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 explicitly or consider using "allowedOriginPatterns" instead.

2、解決方法

由于我的springcloud版本是2.1.0

???????? 而renren-first后臺(tái)管理系統(tǒng)的版本是2.6.6

版本的選擇參考:?

b(18條消息) Spring Boot,Spring Cloud,Spring Cloud Alibaba 版本選擇說明以及整理歸納_樂之終曲的博客-CSDN博客_springcloudalibaba版本?然后將報(bào)錯(cuò)的地方將 .allowedOriginPatterns("*")改為 allowedOrigins("*")

原文鏈接:https://blog.csdn.net/qq_41834086/article/details/125036233

  • 上一篇:沒有了
  • 下一篇:沒有了
欄目分類
最近更新