changed CORS to allowed origin pattern

This commit is contained in:
patrick-werner
2021-03-31 12:34:28 +02:00
parent 390dad7974
commit 583c542c92
2 changed files with 6 additions and 7 deletions

View File

@@ -280,7 +280,7 @@ public class BaseJpaRestfulServer extends RestfulServer {
config.addAllowedHeader("X-Requested-With");
config.addAllowedHeader("Prefer");
List<String> allAllowedCORSOrigins = appProperties.getCors().getAllowed_origin();
allAllowedCORSOrigins.forEach(config::addAllowedOrigin);
allAllowedCORSOrigins.forEach(config::addAllowedOriginPattern);
config.addExposedHeader("Location");