Skip to content

Commit

Permalink
Merge pull request #322 from stianst/master
Browse files Browse the repository at this point in the history
KEYCLOAK-411 Set cors properties in KeycloakDeployment
  • Loading branch information
stianst committed Apr 7, 2014
2 parents 6081572 + bf95c2b commit 2916cce
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -73,6 +73,13 @@ protected KeycloakDeployment internalBuild(AdapterConfig adapterConfig) {
deployment.setLogoutUrl(KeycloakUriBuilder.fromUri(logoutUrl));
deployment.setAccountUrl(accountUrl);

if (adapterConfig.isCors()) {
deployment.setCors(true);
deployment.setCorsMaxAge(adapterConfig.getCorsMaxAge());
deployment.setCorsAllowedHeaders(adapterConfig.getCorsAllowedHeaders());
deployment.setCorsAllowedMethods(adapterConfig.getCorsAllowedMethods());
}

return deployment;
}

Expand Down

0 comments on commit 2916cce

Please sign in to comment.