diff --git a/gepi/gepi-webapp/src/main/java/de/julielab/gepi/webapp/services/AppModule.java b/gepi/gepi-webapp/src/main/java/de/julielab/gepi/webapp/services/AppModule.java index 13c7f887..24368778 100644 --- a/gepi/gepi-webapp/src/main/java/de/julielab/gepi/webapp/services/AppModule.java +++ b/gepi/gepi-webapp/src/main/java/de/julielab/gepi/webapp/services/AppModule.java @@ -81,6 +81,12 @@ public static void contributeFactoryDefaults( // symbol source at the top). This is here to give a default value when the property is not included in the // configuration file. configuration.add("gepi.maintenance", false); + + configuration.add(SymbolConstants.CORS_ENABLED, "true"); + configuration.add(SymbolConstants.CORS_ALLOWED_ORIGINS, "*"); + configuration.add(SymbolConstants.CORS_ALLOW_CREDENTIALS, "true"); + configuration.add(SymbolConstants.CORS_EXPOSE_HEADERS, "X-Custom-Header"); + configuration.add(SymbolConstants.CORS_MAX_AGE, "3600"); } public static void contributeApplicationDefaults(