Skip to content

Commit

Permalink
Use overrides for CORS symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
khituras committed Sep 5, 2024
1 parent a9a29db commit 2a384fb
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ public static void contributeFactoryDefaults(
// 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");
configuration.override(SymbolConstants.CORS_ENABLED, "true");
configuration.override(SymbolConstants.CORS_ALLOWED_ORIGINS, "*");
configuration.override(SymbolConstants.CORS_ALLOW_CREDENTIALS, "true");
configuration.override(SymbolConstants.CORS_EXPOSE_HEADERS, "X-Custom-Header");
configuration.override(SymbolConstants.CORS_MAX_AGE, "3600");
}

public static void contributeApplicationDefaults(
Expand Down

0 comments on commit 2a384fb

Please sign in to comment.