mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-04-28 13:19:32 -05:00
Wildcard origin not allowed
This commit is contained in:
@@ -27,7 +27,7 @@ class WebFluxConfig : WebServerFactoryCustomizer<ConfigurableWebServerFactory>,
|
||||
|
||||
override fun addCorsMappings(registry: CorsRegistry) {
|
||||
registry.addMapping("/**")
|
||||
.allowedOrigins("*")
|
||||
.allowedOrigins("https://discalbot.com", "https://www.discalbot.com", "https://dev.discalbot.com")
|
||||
.allowedMethods("GET", "POST", "OPTIONS")
|
||||
.allowedHeaders("Authorization", "Content-Type")
|
||||
.allowCredentials(true)
|
||||
|
||||
Reference in New Issue
Block a user