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) {
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user