Skip to content

Commit

Permalink
feat: https cors
Browse files Browse the repository at this point in the history
  • Loading branch information
koreaioi authored Jul 9, 2024
1 parent 0f52718 commit 3b654db
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public CorsConfiguration getCorsConfiguration(HttpServletRequest request) {

CorsConfiguration configuration = new CorsConfiguration();

configuration.setAllowedOrigins(Collections.singletonList("http://localhost:3000"));
//configuration.setAllowedOrigins(Collections.singletonList("http://localhost:3000"));
configuration.setAllowedOrigins(Arrays.asList("http://localhost:3000", "https://localhost:3000"));

configuration.setAllowedMethods(Collections.singletonList("*"));
configuration.setAllowCredentials(true);
configuration.setAllowedHeaders(Collections.singletonList("*"));
Expand Down

0 comments on commit 3b654db

Please sign in to comment.