Skip to content

Commit

Permalink
Update CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegRyazancev committed Mar 5, 2024
1 parent f06288f commit 5186ea8
Showing 1 changed file with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,11 @@ public SecurityFilterChain filterChain(
cors.configurationSource(request -> {
CorsConfiguration config = new CorsConfiguration();
config.setAllowedOrigins(
List.of("http://localhost:3000",
"https://parkmeclient-productio"
+ "n.up.railway.app"));
List.of("*"));
config.setAllowedMethods(
List.of("GET",
"POST",
"PUT",
"DELETE",
"OPTIONS"));
List.of("*"));
config.setAllowedHeaders(
List.of("Authorization",
"Content-Type",
"Accept"));
List.of("*"));
config.setAllowCredentials(true);
config.setMaxAge(3600L);
return config;
Expand Down

0 comments on commit 5186ea8

Please sign in to comment.