Commit 9dfe37a0 authored by Matija Obreza's avatar Matija Obreza

CORS max age on /api/* increased

parent ea5e76e4
......@@ -185,7 +185,7 @@ public class WebConfiguration extends WebMvcConfigurerAdapter {
public void addCorsMappings(final CorsRegistry registry) {
// .allowedOrigins(uiOrigin)
.allowedMethods("PUT", "POST", "GET", "DELETE");
.allowedMethods("PUT", "POST", "GET", "DELETE").maxAge(60*60*24);
// .allowedHeaders("header1", "header2", "header3")
// .exposedHeaders("header1", "header2")
// .allowCredentials(false).maxAge(3600);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment