Skip to content

Commit

Permalink
hotfix: Cookie 세팅 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
YongsHub committed Oct 22, 2023
1 parent eb9c222 commit fe0d21c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public ResponseCookie setRefreshTokenCookie(String value) {
.httpOnly(true)
.maxAge(2629744)
.secure(true)
.domain("ssafsound.com")
.path("/auth/reissue")
.build();
}
Expand All @@ -25,6 +26,7 @@ public ResponseCookie setAccessTokenCookie(String value) {
.httpOnly(true)
.maxAge(2629744)
.secure(true)
.domain("ssafsound.com")
.path("/")
.build();
}
Expand All @@ -45,6 +47,7 @@ public ResponseCookie deleteCookie(String name, String value) {
.httpOnly(true)
.maxAge(0)
.secure(true)
.domain("ssafsound.com")
.path("/")
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public void addCorsMappings(CorsRegistry registry) {
.allowedOrigins("https://www.ssafsound.com")
.allowedOrigins("https://test.ssafsound.com")
.allowedOrigins("https://api.ssafsound.com")
.allowedOrigins("http://ssafsound.com")
.allowedOrigins("https://ssafsound.com")
.allowedMethods(ALLOWED_METHOD_NAMES.split(","))
.allowedHeaders("*")
.allowCredentials(true)
Expand Down Expand Up @@ -64,6 +66,8 @@ public FilterRegistrationBean<CorsFilter> corsFilterRegistrationBean() {
config.addAllowedOrigin("https://www.ssafsound.com");
config.addAllowedOrigin("https://test.ssafsound.com");
config.addAllowedOrigin("http://www.ssafsound.com");
config.addAllowedOrigin("https://ssafsound.com");
config.addAllowedOrigin("http://ssafsound.com");
config.addAllowedHeader("*");
config.addAllowedMethod("*");
config.setMaxAge(2629744L);
Expand Down

0 comments on commit fe0d21c

Please sign in to comment.