2025-07-06 01:31:43 +08:00
|
|
|
spring:
|
|
|
|
cloud:
|
|
|
|
gateway:
|
|
|
|
# 全局跨域
|
|
|
|
globalcors:
|
|
|
|
cors-configurations:
|
|
|
|
'[/**]':
|
|
|
|
allowed-headers:
|
|
|
|
- "*"
|
|
|
|
allowed-origin-patterns:
|
|
|
|
- "*"
|
|
|
|
allowed-methods:
|
|
|
|
- "*"
|
|
|
|
allowed-origins:
|
|
|
|
- "*"
|
|
|
|
allow-credentials: true
|
2025-07-06 13:29:57 +08:00
|
|
|
routes:
|
|
|
|
- id: route-product
|
|
|
|
uri: lb://service-product
|
|
|
|
predicates:
|
|
|
|
- Path=/api/product/**
|
2025-07-06 16:06:34 +08:00
|
|
|
filters:
|
|
|
|
# - RewritePath=/api/(?<segment>.*),/xxx/$\{segment}
|
2025-07-06 13:29:57 +08:00
|
|
|
- id: route-order
|
|
|
|
uri: lb://service-order
|
|
|
|
predicates:
|
|
|
|
- Path=/api/order/**
|
|
|
|
- id: route-member
|
|
|
|
uri: lb://service-member
|
|
|
|
predicates:
|
|
|
|
- Path=/api/member/**
|
|
|
|
- id: route-coupon
|
|
|
|
uri: lb://service-coupon
|
|
|
|
predicates:
|
|
|
|
- Path=/api/coupon/**
|