网关统一配置跨域支持

spring:
  cloud:
    gateway:
      globalcors:
        corsConfigurations:
          '[/**]':
            allowedHeaders: "*"
            allowedOriginPatterns: "*"
            allowCredentials: true
            allowedMethods:
              - GET
              - POST
              - DELETE
              - PUT

  

posted on 2022-03-25 11:39  滚动的蛋  阅读(28)  评论(0编辑  收藏  举报

导航