Skip to content

Commit

Permalink
Merge pull request #75 from seoshinehyo/fix/#74
Browse files Browse the repository at this point in the history
cors 설정
  • Loading branch information
jjun522 authored Dec 22, 2024
2 parents 03108f0 + cfd6788 commit b92abcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/dearnote/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import java.util.Collections;
import java.util.List;

//@Configuration
//@EnableWebSecurity
@Configuration
@EnableWebSecurity
public class SecurityConfig {

private final CustomOAuth2UserService customOAuth2UserService;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/dearnote/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.exposedHeaders("Set-Cookie")
.allowedOrigins("http://localhost:5173");
}
}

0 comments on commit b92abcc

Please sign in to comment.