Skip to content

Commit

Permalink
fix: cors allowedOrigins 수정 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdohyung committed Nov 22, 2023
1 parent 3931408 commit 3605e08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/backend/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ public JwtAuthenticationFilter jwtAuthenticationFilter() {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedOrigins("jedero.site")
.allowedMethods("*")
.allowedHeaders("*")
.allowCredentials(true)
.exposedHeaders("*");
}

Expand Down

0 comments on commit 3605e08

Please sign in to comment.