diff --git a/src/main/java/de/sybit/sygotchi/config/WebConfig.java b/src/main/java/de/sybit/sygotchi/config/WebConfig.java index 1c06a8f..756266b 100644 --- a/src/main/java/de/sybit/sygotchi/config/WebConfig.java +++ b/src/main/java/de/sybit/sygotchi/config/WebConfig.java @@ -9,6 +9,6 @@ public class WebConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { - registry.addMapping("/**").allowedOrigins("*").allowedMethods("GET", "POST", "PUT", "DELETE"); + registry.addMapping("/**").allowedOrigins("*").allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS"); } }