Skip to content

Commit be9ac68

Browse files
authored
[DEPLOY] v.1.1.10
[DEPLOY] v.1.1.10
2 parents f72b210 + dc5af50 commit be9ac68

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/main/java/sopt/makers/authentication/common/constant/CookieConstant.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ private CookieConstant() {}
55

66
public static final String SAME_SITE_NONE = "None";
77
public static final String COOKIE_DOMAIN = ".sopt.org";
8-
public static final String CORS_ALLOWED_ORIGIN_PATTERN = "https://*.sopt.org";
8+
public static final String[] CORS_ALLOWED_ORIGINS = {
9+
"https://sopt-internal-dev.sopt.org", "https://playground.sopt.org"
10+
};
911
}

src/main/java/sopt/makers/authentication/config/WebConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package sopt.makers.authentication.config;
22

3-
import static sopt.makers.authentication.common.constant.CookieConstant.CORS_ALLOWED_ORIGIN_PATTERN;
3+
import static sopt.makers.authentication.common.constant.CookieConstant.CORS_ALLOWED_ORIGINS;
44
import static sopt.makers.authentication.common.constant.SystemConstant.API_KEY_HEADER;
55
import static sopt.makers.authentication.common.constant.SystemConstant.PATTERN_ALL;
66
import static sopt.makers.authentication.common.constant.SystemConstant.SERVICE_NAME_HEADER;
@@ -16,7 +16,7 @@ public class WebConfig implements WebMvcConfigurer {
1616
public void addCorsMappings(CorsRegistry registry) {
1717
registry
1818
.addMapping(PATTERN_ALL)
19-
.allowedOriginPatterns(CORS_ALLOWED_ORIGIN_PATTERN)
19+
.allowedOrigins(CORS_ALLOWED_ORIGINS)
2020
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH")
2121
.allowedHeaders("Authorization", "Content-Type", API_KEY_HEADER, SERVICE_NAME_HEADER)
2222
.allowCredentials(true)

0 commit comments

Comments
 (0)