Skip to content

Commit

Permalink
Merge pull request #26 from Capstone-Richam/feature/15-user
Browse files Browse the repository at this point in the history
[fix]: Main cors에러 수정
  • Loading branch information
qogustj authored Dec 4, 2023
2 parents 549d7a8 + 9c061df commit 9a9396e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/Nunbody/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public CorsFilter corsFilter() {
CorsConfiguration config = new CorsConfiguration();
config.setAllowCredentials(true);
config.addAllowedOrigin("http://localhost:5173");
// config.addAllowedOrigin("프론트 도메인");
config.addAllowedOrigin("https://www.richam.site/");
config.addAllowedHeader("*");
config.setAllowedMethods(Arrays.asList("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
source.registerCorsConfiguration("/**",config);
Expand Down

0 comments on commit 9a9396e

Please sign in to comment.