Skip to content

Commit

Permalink
[fix] cors 설정 프론트 배포 서버 주소 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jo0oy committed Jan 26, 2024
1 parent 04fb677 commit 3bd6920
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http,
configuration.applyPermitDefaultValues();
configuration.addAllowedOriginPattern("");
configuration.addAllowedOriginPattern("http://localhost:5173");
configuration.addAllowedOriginPattern("https://tripcometrue.vercel.app");
configuration.setAllowedMethods(
Arrays.asList("GET", "POST", "PUT", "PATCH", "DELETE", "HEAD"));

Expand Down

0 comments on commit 3bd6920

Please sign in to comment.