From 4e63dc2411802b23c5b01d0bdbd584fc52482f1a Mon Sep 17 00:00:00 2001 From: skywalker Date: Wed, 28 Aug 2024 02:01:42 +0300 Subject: [PATCH] chore(dev): try do not use "*" for cors --- .../kotlin/mu/muse/application/muse/SecurityConfiguration.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app/src/main/kotlin/mu/muse/application/muse/SecurityConfiguration.kt b/server/app/src/main/kotlin/mu/muse/application/muse/SecurityConfiguration.kt index 5867b956..ee2a582d 100644 --- a/server/app/src/main/kotlin/mu/muse/application/muse/SecurityConfiguration.kt +++ b/server/app/src/main/kotlin/mu/muse/application/muse/SecurityConfiguration.kt @@ -74,8 +74,8 @@ class SecurityConfiguration { fun corsConfigurationSource(): CorsConfigurationSource { logger.info("keeek: 'dev'") val configuration = CorsConfiguration() -// configuration.allowedOrigins = listOf("http://localhost:3000") - configuration.allowedOrigins = listOf("*") + configuration.allowedOrigins = listOf("http://localhost:3000") +// configuration.allowedOrigins = listOf("*") configuration.allowedMethods = listOf("GET", "POST", "PUT", "DELETE", "OPTIONS") configuration.allowedHeaders = listOf("*") configuration.allowCredentials = true