Skip to content

Commit

Permalink
Configure Tapestry CORS symbols.
Browse files Browse the repository at this point in the history
  • Loading branch information
khituras committed Sep 5, 2024
1 parent 61f23b8 commit a9a29db
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a9a29db

Please sign in to comment.