Skip to content

Commit 36bf5dd

Browse files
authored
feat(config): expose header (#292)
- expose Authorization header - allow origin 수정
1 parent 097e836 commit 36bf5dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/somemore/global/config/WebConfig.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ public void addCorsMappings(CorsRegistry registry) {
1313
.allowedOrigins(
1414
"http://localhost:3000",
1515
"http://localhost:5173",
16-
"http://front-deploy.s3-website.ap-northeast-2.amazonaws.com",
17-
"http://somemore-front.s3-website.ap-northeast-2.amazonaws.com/",
1816
"https://www.somemore.site/",
1917
"https://api.somemore.site/"
2018
)
2119
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")
2220
.allowedHeaders("*")
21+
.exposedHeaders("Authorization")
2322
.allowCredentials(true)
2423
.maxAge(3600);
2524
}

0 commit comments

Comments
 (0)