From b0e37b5a6a33c3f33bb34dbc40745d821931221b Mon Sep 17 00:00:00 2001
From: Jonas Blatt <jonasblatt@uni-koblenz.de>
Date: Tue, 15 Oct 2019 00:53:16 +0200
Subject: [PATCH] Set cors for dev to "all", so that in production mode all
 origins are allowed

---
 dmnverifierapi/src/main/resources/application.properties | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dmnverifierapi/src/main/resources/application.properties b/dmnverifierapi/src/main/resources/application.properties
index 268acffe..b4419846 100644
--- a/dmnverifierapi/src/main/resources/application.properties
+++ b/dmnverifierapi/src/main/resources/application.properties
@@ -1,9 +1,9 @@
 # Configuration file
 # Quarkus cors settings
 quarkus.http.cors=true
-quarkus.http.cors.origins=http://localhost:8081,http://localhost:80
+%dev.quarkus.http.cors.origins=http://localhost:8081,http://localhost:80
 quarkus.http.cors.headers=accept,authorization,content-type,x-requested-with
-quarkus.http.cors.methods=GET, POST, OPTIONS
+quarkus.http.cors.methods=GET,POST,OPTIONS
 # Amount of threads for calculating the verifications
 verifier.threads=8
 # No parallel execution in dev mode
-- 
GitLab