Skip to content

Commit

Permalink
Fix: Add cors-allow domain (Kernel360#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
anso33 authored Jan 25, 2024
1 parent 799edf8 commit d845545
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {

http.cors(corsCustomizer -> corsCustomizer.configurationSource(request -> {
CorsConfiguration config = new CorsConfiguration();
config.setAllowedOrigins(List.of("http://localhost:3000"));
config.setAllowedOrigins(List.of("http://localhost:3000", "https://peaceful-sopapillas-36c089.netlify.app"));
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE"));
config.setAllowedHeaders(List.of("*"));
config.setMaxAge(3600L);
Expand Down

0 comments on commit d845545

Please sign in to comment.