Skip to content

Commit

Permalink
fix(#125) : OriginPatterns 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
aeeazip committed Aug 22, 2023
1 parent e79bc1c commit 5e1846f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/trothly/trothcam/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected CorsConfigurationSource corsConfigurationSource() {

private CorsConfiguration getDefaultCorsConfiguration() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(
configuration.setAllowedOriginPatterns(
Arrays.asList("http://localhost:8080", "https://trothly.com", "http://localhost:3000"));
configuration.setAllowedHeaders(Arrays.asList("*")); // 모든 header 에 응답을 허용
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "PATCH")); // 모든 get,post,patch,put,delete 요청 허용
Expand Down

0 comments on commit 5e1846f

Please sign in to comment.