Skip to content

Commit

Permalink
✨ feat : 모든 origin 허용
Browse files Browse the repository at this point in the history
  • Loading branch information
ShimFFF committed Feb 12, 2025
1 parent 673f835 commit 8883e4b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/example/mody/global/config/CorsMvcConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ public class CorsMvcConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry corsRegistry) {
corsRegistry.addMapping("/**")
.exposedHeaders("Set-Cookie")
.allowedOrigins(
"http://localhost:5173", // 현재 요청 URL
"https://kkoalla.app",
"https://kkoalla.app:5173",
"https://kkoalla.app:8443"
.allowedOrigins("*"
// "http://localhost:5173", // 현재 요청 URL
// "https://kkoalla.app",
// "https://kkoalla.app:5173",
// "https://kkoalla.app:8443"
)
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")
.allowedHeaders("*")
Expand Down

0 comments on commit 8883e4b

Please sign in to comment.