Skip to content

Commit b07f0c2

Browse files
committed
1 parent 386143b commit b07f0c2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/main/java/com/DecodEat/global/config/CorsConfig.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,15 @@ public class CorsConfig {
1515
public CorsConfigurationSource corsConfigurationSource() {
1616
CorsConfiguration configuration = new CorsConfiguration();
1717

18-
configuration.setAllowedOriginPatterns(List.of( "https://decodeat.netlify.app",
19-
"http://localhost:8080","http://localhost:5173", "http://decodeat.store", "https://decodeat.store", "http://www.decodeat.store", "https://www.decodeat.store" ));
18+
configuration.setAllowedOriginPatterns(List.of(
19+
"https://decodeat.netlify.app",
20+
"http://localhost:8080",
21+
"http://localhost:5173",
22+
"http://decodeat.store",
23+
"https://decodeat.store",
24+
"http://www.decodeat.store",
25+
"https://www.decodeat.store",
26+
"https://api.decodeat.store"));
2027
configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"));
2128
configuration.setAllowedHeaders(List.of("*"));
2229
configuration.setAllowCredentials(true); // 쿠키/인증정보 포함 허용

0 commit comments

Comments
 (0)