File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
backend/src/main/kotlin/hu/bme/sch/cmsch/config Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package hu.bme.sch.cmsch.config
3
3
import org.springframework.beans.factory.annotation.Value
4
4
import org.springframework.context.annotation.Configuration
5
5
import org.springframework.http.CacheControl
6
+ import org.springframework.http.HttpMethod
6
7
import org.springframework.web.servlet.config.annotation.CorsRegistry
7
8
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry
8
9
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@@ -28,6 +29,7 @@ class WebMvcConfig(
28
29
registry.addMapping(it)
29
30
.allowedOrigins(productionUrl)
30
31
.allowedOriginPatterns(* allowedOrigins.toTypedArray())
32
+ .allowedMethods(* HttpMethod .values().map(HttpMethod ::name).toTypedArray())
31
33
}
32
34
}
33
35
}
You can’t perform that action at this time.
0 commit comments