Skip to content

Commit

Permalink
fix : allowedOriginPatterns ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
hoonyworld committed Aug 30, 2023
1 parent a0897f1 commit f39e2d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/leets/reminiscence/global/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedOrigins("http://localhost:3000", "http://localhost:8080")
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowCredentials(true)
.allowedHeaders("*")
.allowedHeaders("Authorization", "Authorization-refresh")
.exposedHeaders("Authorization", "Authorization-refresh")
.maxAge(3600);
}
Expand Down

0 comments on commit f39e2d5

Please sign in to comment.