Skip to content

Commit

Permalink
🚀 nginX 도입에 따른 오리진 포트변경
Browse files Browse the repository at this point in the history
  • Loading branch information
RetepMil committed Oct 1, 2023
1 parent eee100c commit d3db0b7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration
@EnableWebMvc
class WebConfig() : WebMvcConfigurer {
class WebConfig : WebMvcConfigurer {

// CORS 설정
override fun addCorsMappings(registry: CorsRegistry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:5173", "http://dailysteady.site:5173")
.allowedOrigins("http://localhost:5173", "http://dailysteady.site/")
.allowedMethods("*")
.allowCredentials(true)
.exposedHeaders("*")
Expand Down

0 comments on commit d3db0b7

Please sign in to comment.