Skip to content

Commit

Permalink
hotfix: update cors config
Browse files Browse the repository at this point in the history
  • Loading branch information
CChuYong committed Jun 26, 2024
1 parent 49e5115 commit b52ded4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 39 deletions.

This file was deleted.

10 changes: 10 additions & 0 deletions api-gateway/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ spring:
name: api-gateway
cloud:
gateway:
default-filters:
- DedupeResponseHeader=Access-Control-Allow-Origin Access-Control-Allow-Credentials
globalcors:
add-to-simple-url-handler-mapping: true
cors-configurations:
'[/**]':
allowedOrigins: 'http://localhost:3000,https://mafoo.kr,https://dev.mafoo.kr'
allow-credentials: true
allowedHeaders: '*'
allowedMethods: '*'
routes:
- id: user-service
uri: https://user-service.mafoo.kr
Expand Down

0 comments on commit b52ded4

Please sign in to comment.