SpringBoot gateway如何支持跨域? 背景修改gateway工程的配置文件 背景 系统开发的开放接口被ISV厂商在自研的页面中调用,出现cors错误。 修改gateway工程的配置文件 spring:cloud:gateway:globalcors: # 允许跨域访问cors-configurations:'[/**]':allowedOrigins: "*"allowedHeaders: "*"allowedMethods: "*"maxAge: 360000