This commit is contained in:
Hymmel 2026-01-22 11:20:20 +01:00
parent 06967a905b
commit 21fc147f52

View file

@ -72,7 +72,7 @@ public class SecurityConfig {
@Bean
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(List.of("https://projekt.lona-development.org", "http://localhost:3000"));
configuration.setAllowedOriginPatterns(List.of("https://projekt.lona-development.org", "http://localhost:3000", "https://projektbackend.lona-development.org"));
configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
configuration.setAllowedHeaders(List.of("*"));
configuration.setAllowCredentials(true);