From eaee0784ce6f2413d906ddf0358ded11faaf0646 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Fri, 4 Apr 2025 20:12:05 +0200 Subject: [PATCH] fix(cors): update CORS to allow all origins --- backend/src/main/java/de/szut/casino/config/CorsConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/de/szut/casino/config/CorsConfig.java b/backend/src/main/java/de/szut/casino/config/CorsConfig.java index 8840bbe..a3f0fb0 100644 --- a/backend/src/main/java/de/szut/casino/config/CorsConfig.java +++ b/backend/src/main/java/de/szut/casino/config/CorsConfig.java @@ -9,7 +9,7 @@ public class CorsConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOrigins("http://localhost:4200", "http://192.168.176.120:4200") + .allowedOrigins("*") .allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS") .allowedHeaders("Origin", "Content-Type", "Accept", "Authorization", "X-Requested-With") .allowCredentials(true)