From 4f7c9044396ab9369a62b1f565a4ab633619d0a1 Mon Sep 17 00:00:00 2001 From: lwih Date: Wed, 4 Sep 2024 17:19:47 +0200 Subject: [PATCH] fix: add PATCH to allowed CORS methods --- .../kotlin/fr/gouv/cnsp/monitorfish/config/SecurityConfig.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/config/SecurityConfig.kt b/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/config/SecurityConfig.kt index 8e5195f057..61b4b8d7dd 100644 --- a/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/config/SecurityConfig.kt +++ b/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/config/SecurityConfig.kt @@ -85,7 +85,7 @@ class SecurityConfig( val configuration = CorsConfiguration().apply { allowedOrigins = listOf("*") - allowedMethods = listOf("HEAD", "GET", "POST", "PUT", "DELETE", "OPTIONS") + allowedMethods = listOf("HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS") allowedHeaders = listOf("Authorization", "Cache-Control", "Content-Type") }