Skip to content

Commit

Permalink
add :: cors url 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Umjiseung committed Apr 12, 2024
1 parent 8f95bf7 commit ba74ab8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
class WebMvcConfig: WebMvcConfigurer {
override fun addCorsMappings(registry: CorsRegistry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000", "https://gauth.co.kr", "https://www.gauth.co.kr", "https://dev-gauth-frontend.vercel.app")
.allowedOrigins("http://localhost:3000", "https://gauth.co.kr", "https://www.gauth.co.kr", "https://dev-gauth-frontend.vercel.app", "https://gauth-sigma.vercel.app")
.allowedMethods("*")
.allowedHeaders("*")
.exposedHeaders("Authorization")
Expand Down

0 comments on commit ba74ab8

Please sign in to comment.