Commit 61df843b37f904250b5cf4ccf698c16a0806036c
1 parent
280afcd5
Exists in
master
跨域
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
cloud/getaway/src/main/resources/application.yml
@@ -14,6 +14,12 @@ eureka: | @@ -14,6 +14,12 @@ eureka: | ||
14 | spring: | 14 | spring: |
15 | cloud: | 15 | cloud: |
16 | gateway: | 16 | gateway: |
17 | + globalcors: | ||
18 | + corsConfigurations: | ||
19 | + '[/**]': | ||
20 | + allowedOrigins: "*" | ||
21 | + allowedMethods: "*" | ||
22 | + allowedHeaders: "*" | ||
17 | routes: | 23 | routes: |
18 | - id: usersearch | 24 | - id: usersearch |
19 | uri: lb://usersearch | 25 | uri: lb://usersearch |