Skip to content

Commit

Permalink
fix: cors check
Browse files Browse the repository at this point in the history
  • Loading branch information
moonjin-kim committed Apr 29, 2024
1 parent a6fb22f commit 0fa2e99
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
@Override
public CorsConfiguration getCorsConfiguration(HttpServletRequest request) {
CorsConfiguration config = new CorsConfiguration();
config.setAllowedOrigins(Collections.singletonList("http://localhost:3000"));
config.setAllowedOrigins(Collections.singletonList("https://plan-it-jkkkp.netlify.app"));
config.setAllowedMethods(List.of("GET", "POST", "DELETE", "PUT"));
config.setAllowCredentials(true);
config.setAllowedHeaders(Collections.singletonList("*"));
Expand All @@ -64,6 +64,7 @@ public CorsConfiguration getCorsConfiguration(HttpServletRequest request) {
})
.authorizeHttpRequests((authorizeRequests) -> authorizeRequests
.requestMatchers(
"/",
"/member/signin",
"/member/signup",
"/member/refresh",
Expand Down

0 comments on commit 0fa2e99

Please sign in to comment.