Commit 4591bc28 authored by Leonardo Silveira Berlatto's avatar Leonardo Silveira Berlatto
Browse files

feat(cors): Corrigindo erro de CORS

parent 5e653346
Pipeline #11277 passed with stages
in 9 minutes and 22 seconds
Showing with 2 additions and 0 deletions
+2 -0
......@@ -10,6 +10,8 @@ class CorsConfig : WebMvcConfigurer {
override fun addCorsMappings(registry: CorsRegistry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedHeaders("*")
.exposedHeaders("*")
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS", "HEAD", "TRACE", "CONNECT")
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment