Skip to content

Commit

Permalink
Update SecurityConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
rlawogkr authored Jul 22, 2024
1 parent 568b26b commit acc4a56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public WebMvcConfigurer corsConfigurer() {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")

.allowedOrigins("http://localhost:3000","https://www.wagubook.shop","http://3.37.8.147:3000") // React 앱의 주소
.allowedOrigins("http://localhost:3000","https://www.wagubook.shop","http://3.37.8.147:3000", "https://895c-168-126-208-153.ngrok-free.app") // React 앱의 주소
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")
.allowedHeaders("Authorization", "Cache-Control", "Content-Type") // 필요한 헤더만 허용. allowedHeaders("*")
.allowCredentials(true);
Expand Down

0 comments on commit acc4a56

Please sign in to comment.