Skip to content

Commit

Permalink
Merge pull request #66 from Domitory-CheckMate/feature/65-config
Browse files Browse the repository at this point in the history
[feat] cors 배포주소 추가
  • Loading branch information
OJOJIN authored Jan 25, 2024
2 parents 26c353e + d011581 commit 78ca1b1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public CorsFilter corsFilter() {
config.setAllowCredentials(true);
config.addAllowedOrigin("http://localhost:3000");
config.addAllowedOrigin("https://jxy.me"); //stomp 테스트를 위한 사이트 cors 등록
config.addAllowedOrigin("https://check-mate-rho.vercel.app"); //stomp 테스트를 위한 사이트 cors 등록
config.addAllowedHeader("*");
config.setAllowedMethods(Arrays.asList("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
source.registerCorsConfiguration("/**", config);
Expand Down

0 comments on commit 78ca1b1

Please sign in to comment.