当前位置:网站首页>Dual cross domain: access allow origin header contains multiple values "*, *", but only one is allowed
Dual cross domain: access allow origin header contains multiple values "*, *", but only one is allowed
2022-06-23 00:44:00 【With respect】
problem : The front-end debugging found two in the interface response header Access-Allow-Origin , But the back end goes through apifox perhaps postman Debugging can not re - solve the problem .
reason : The background is at the gateway (spring cloud gateway) After cross domain is enabled , The service also intercepts specific paths for cross domain .wtf.
spring:
cloud:
gateway:
# Solve dual cross domain problems
default-filters:
- DedupeResponseHeader=Access-Control-Allow-Origin Access-Control-Allow-Credentials,
globalcors:
cors-configurations:
'[/**]':
allowed-origins: "*"
allowed-methods: "*"
allowed-headers: "x-requested-with,Content-Language,Authorization,Access-Control-Allow-Origin,request-id,Accept-Language,content-type,content-disposition"
allow-credentials: true
边栏推荐
- SAP UI5 应用开发教程之一百零三 - 如何在 SAP UI5 应用中消费第三方库
- Cadence spb17.4 - Allegro - optimize and specify the polyline connection angle of a single electrical line - polyline to arc
- 美团基于 Flink 的实时数仓平台建设新进展
- Typecho仿盧松松博客主題模板/科技資訊博客主題模板
- Kunlundb backup and recovery
- SAP UI5 应用开发教程之一百零二 - SAP UI5 应用的打印(Print)功能实现详解试读版
- MD5加密+盐值工具类
- How to use enum data types
- Quelle est la structure et la façon dont les données sont stockées dans la base de données?
- Cadence spb17.4 - Chinese UI settings
猜你喜欢

SAP ui5 application development tutorial 103 - how to consume the trial version of the third-party library in SAP ui5 applications

Typecho仿盧松松博客主題模板/科技資訊博客主題模板

Installation record of ros1noetic in Win 11

Analysis on the wallet system architecture of Baidu trading platform

OSPF experiment in mGRE environment

华为云招募工业智能领域合作伙伴,强力扶持+商业变现

Hierarchy selector

3DMAX modeling notes (I): introducing 3DMAX and creating the first model Hello World

百度交易中台之钱包系统架构浅析

Dig three feet to solve the data consistency problem between redis and MySQL
随机推荐
3 big questions! Redis cache exceptions and handling scheme summary
Kunlun distributed database sequence function and its implementation mechanism
Which brokerage platform is better and safer for a brokerage to open an account on a mobile phone? What if you need a low commission
Using geTx to build a more elegant structure of flutter pages
百度交易中台之钱包系统架构浅析
Project directory navigation
Is it reliable to get new debts? Is it safe?
[go] go polymorphism
[go] getting started with go modules
[sliding window] leetcode992 Subarrays with K Different Integers
Is it safe for CICC securities to open an account? What is its relationship with CICC?
Shell view help
Psychological analysis of the safest spot Silver
Is it safe to open a new bond? How
Oracle ASM uses the CP command in asmcmd to perform remote replication
SAP ui5 application development tutorial 103 - how to consume third-party libraries in SAP ui5 applications
Introduction to the unique variable reading and writing function of Kunlun distributed database
SAP mm transaction code vl04 create outbound delivery for sto
#yyds干货盘点#尾递归比递归好在哪儿
TiDB VS MySQL