Skip to content

Commit d9f9aad

Browse files
committed
cors테스트
1 parent cb794fc commit d9f9aad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

back/src/main/java/com/back/global/webMvc/WebMvcConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public void addCorsMappings(CorsRegistry registry) {
1111
registry
1212
.addMapping("/**")
1313
.allowedOrigins("http://localhost:3000")
14-
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH")
14+
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")
1515
.allowedHeaders("*")
1616
.allowCredentials(true);
1717
}

back/src/main/resources/application-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ custom:
3939
cookie:
4040
httpOnly: true
4141
secure: true # HTTPS에서는 true로 변경
42-
sameSite: "Lax"
42+
sameSite: "None" # 임시로 None로 변경
4343
maxAge: "#{60*60*24}"

0 commit comments

Comments
 (0)