Skip to content

Commit

Permalink
feat: CORS 허용
Browse files Browse the repository at this point in the history
  • Loading branch information
kor-Chipmunk committed Feb 13, 2024
1 parent 189e95b commit 440d2b3
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.lalala.chart.config

import org.springframework.context.annotation.Configuration
import org.springframework.web.reactive.config.CorsRegistry
import org.springframework.web.reactive.config.WebFluxConfigurer

@Configuration
class WebConfig : WebFluxConfigurer {
override fun addCorsMappings(registry: CorsRegistry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedMethods("*")
.allowedHeaders("*")
.allowCredentials(false)
.maxAge(60000)
}
}

0 comments on commit 440d2b3

Please sign in to comment.