跨域配置重复 header contains multiple values

Access to XMLHttpRequest at 'https://dev2.xxxxxx/stp/home/instruction' from origin 'https://test1.xxxxxx' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values 'https://test1.xxxxxx, *', but only one is allowed.

 

去除一个跨域配置。

跨越配置可以在前端、后端和nginx三个地方。

posted @ 2024-03-04 18:51  滴滴滴  阅读(176)  评论(0编辑  收藏  举报