Added Patch and trace to weconfig

This commit is contained in:
FlorianSpeicher
2025-06-15 21:29:34 +02:00
parent 1a58e76591
commit f8bb5fc82a
2 changed files with 1 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ public class WebConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) { public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**") registry.addMapping("/**")
.allowedOrigins("http://localhost:5173") // Erlaube Anfragen von der Frontend-Domain .allowedOrigins("http://localhost:5173") // Erlaube Anfragen von der Frontend-Domain
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS") // Erlaube spezifische HTTP-Methoden .allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH", "TRACE") // Erlaube spezifische HTTP-Methoden
.allowedHeaders("*") // Erlaube alle Header .allowedHeaders("*") // Erlaube alle Header
.allowCredentials(true); // Erlaube Cookies .allowCredentials(true); // Erlaube Cookies
} }