diff --git a/src/main/java/briefing/config/GlobalWebConfig.java b/src/main/java/briefing/config/GlobalWebConfig.java index b4117a3..1623242 100644 --- a/src/main/java/briefing/config/GlobalWebConfig.java +++ b/src/main/java/briefing/config/GlobalWebConfig.java @@ -33,6 +33,11 @@ public void addFormatters(final FormatterRegistry registry) { @Override public void addCorsMappings(final CorsRegistry registry) { registry.addMapping("/**") - .allowedOrigins("http://localhost:3000", "https://briefing-web.vercel.app","https://dev.newsbreifing.store"); + .allowedOrigins("*") + .allowedMethods("*") + .allowedHeaders("*") + .allowCredentials(false) + .maxAge(6000); + } }