Skip to content

Commit

Permalink
fix : cors 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
baesunyoung6767 committed Jun 30, 2024
1 parent bb2377a commit eaca0ad
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 0 deletions.
Binary file modified .gradle/8.8/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/8.8/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/8.8/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/8.8/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .gradle/file-system.probe
Binary file not shown.
22 changes: 22 additions & 0 deletions build/resources/main/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,28 @@ spring:
config:
enabled: false
gateway:
globalcors:
corsConfigurations:
'[/**]':
allowedOrigins:
- "http://localhost:3000"
allow-credentials: true
allowedHeaders:
- x-requested-with
- authorization
- content-type
- credential
- X-AUTH-TOKEN
- X-CSRF-TOKEN
allowedMethods:
- POST
- GET
- PUT
- PATCH
- OPTIONS
- DELETE
exposed-headers:
- Authorization
routes:
- id: auth
uri: http://sunjoo-server-auth-spring-1:8090/
Expand Down
Binary file modified build/tmp/compileJava/previous-compilation-data.bin
Binary file not shown.
22 changes: 22 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,28 @@ spring:
config:
enabled: false
gateway:
globalcors:
corsConfigurations:
'[/**]':
allowedOrigins:
- "http://localhost:3000"
allow-credentials: true
allowedHeaders:
- x-requested-with
- authorization
- content-type
- credential
- X-AUTH-TOKEN
- X-CSRF-TOKEN
allowedMethods:
- POST
- GET
- PUT
- PATCH
- OPTIONS
- DELETE
exposed-headers:
- Authorization
routes:
- id: auth
uri: http://sunjoo-server-auth-spring-1:8090/
Expand Down

0 comments on commit eaca0ad

Please sign in to comment.