Added Patch and trace to weconfig
This commit is contained in:
Binary file not shown.
@@ -13,7 +13,7 @@ public class WebConfig implements WebMvcConfigurer {
|
||||
public void addCorsMappings(CorsRegistry registry) {
|
||||
registry.addMapping("/**")
|
||||
.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
|
||||
.allowCredentials(true); // Erlaube Cookies
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user