Skip to content

Commit

Permalink
Merge pull request #137 from SportsEcho/feature/user
Browse files Browse the repository at this point in the history
클라이언트 및 백엔드 https 적용으로 인한 CorsConfig 주소 추가
  • Loading branch information
zzzzseong committed Jan 30, 2024
2 parents 6067f36 + 0865a49 commit 6128155
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class CorsConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns("http://localhost:3000", "http://sportsecho.life:3000")
.allowedOriginPatterns("http://localhost:3000", "http://sportsecho.life:3000", "https://sportsecho.life")
.exposedHeaders(JwtUtil.AUTHORIZATION_HEADER, JwtUtil.REFRESH_AUTHORIZATION_HEADER)
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedHeaders("*")
Expand Down

0 comments on commit 6128155

Please sign in to comment.