Skip to content

Commit

Permalink
Merge branch 'chart/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
kor-Chipmunk committed Feb 13, 2024
2 parents 298beb6 + 182e652 commit 504b68d
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 WebConfiguration : WebFluxConfigurer {
override fun addCorsMappings(registry: CorsRegistry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedMethods("*")
.allowedHeaders("*")
.allowCredentials(false)
.maxAge(60000)
}
}

0 comments on commit 504b68d

Please sign in to comment.