Enable CORS and allow all origins in dev-mode (#553)
The runQuickstartsFromSource.sh script was getting its PING
requests blocked because of CORS, making it look like the
quickstart was infinitely loading. To fix this, I enabled CORS
explictly on all the Quarkus quickstarts, and allow all origins
in dev mode (runQuickstartsFromSource.sh run the quickstarts
in dev mode).
diff --git a/technology/java-activemq-quarkus/client/src/main/resources/application.properties b/technology/java-activemq-quarkus/client/src/main/resources/application.properties
index 40d0a52..fd661cf 100644
--- a/technology/java-activemq-quarkus/client/src/main/resources/application.properties
+++ b/technology/java-activemq-quarkus/client/src/main/resources/application.properties
@@ -1,4 +1,12 @@
########################
+# General properties
+########################
+# Enable CORS for runQuickstartsFromSource.sh
+quarkus.http.cors=true
+# Allow all origins in dev-mode
+%dev.quarkus.http.cors.origins=/.*/
+
+########################
# Demo properties
########################
diff --git a/technology/kotlin-quarkus/src/main/resources/application.properties b/technology/kotlin-quarkus/src/main/resources/application.properties
index b0743ce..e7abebd 100644
--- a/technology/kotlin-quarkus/src/main/resources/application.properties
+++ b/technology/kotlin-quarkus/src/main/resources/application.properties
@@ -1,4 +1,12 @@
########################
+# General properties
+########################
+# Enable CORS for runQuickstartsFromSource.sh
+quarkus.http.cors=true
+# Allow all origins in dev-mode
+%dev.quarkus.http.cors.origins=/.*/
+
+########################
# Demo properties
########################
diff --git a/technology/kubernetes/demo-app/src/main/resources/application.properties b/technology/kubernetes/demo-app/src/main/resources/application.properties
index 57bd97c..77610ed 100644
--- a/technology/kubernetes/demo-app/src/main/resources/application.properties
+++ b/technology/kubernetes/demo-app/src/main/resources/application.properties
@@ -1,4 +1,12 @@
########################
+# General properties
+########################
+# Enable CORS for runQuickstartsFromSource.sh
+quarkus.http.cors=true
+# Allow all origins in dev-mode
+%dev.quarkus.http.cors.origins=/.*/
+
+########################
# Database properties
########################
diff --git a/technology/kubernetes/school-timetabling/src/main/resources/application.properties b/technology/kubernetes/school-timetabling/src/main/resources/application.properties
index fc4a717..8b1b6ac 100644
--- a/technology/kubernetes/school-timetabling/src/main/resources/application.properties
+++ b/technology/kubernetes/school-timetabling/src/main/resources/application.properties
@@ -1,4 +1,12 @@
########################
+# General properties
+########################
+# Enable CORS for runQuickstartsFromSource.sh
+quarkus.http.cors=true
+# Allow all origins in dev-mode
+%dev.quarkus.http.cors.origins=/.*/
+
+########################
# OptaPlanner properties
########################
diff --git a/use-cases/call-center/src/main/resources/application.properties b/use-cases/call-center/src/main/resources/application.properties
index bd6fd1b..ea7cebb 100644
--- a/use-cases/call-center/src/main/resources/application.properties
+++ b/use-cases/call-center/src/main/resources/application.properties
@@ -1,4 +1,12 @@
########################
+# General properties
+########################
+# Enable CORS for runQuickstartsFromSource.sh
+quarkus.http.cors=true
+# Allow all origins in dev-mode
+%dev.quarkus.http.cors.origins=/.*/
+
+########################
# OptaPlanner properties
########################
quarkus.optaplanner.solver.termination.spent-limit=30s
diff --git a/use-cases/employee-scheduling/src/main/resources/application.properties b/use-cases/employee-scheduling/src/main/resources/application.properties
index 0bf36ca..351fc68 100644
--- a/use-cases/employee-scheduling/src/main/resources/application.properties
+++ b/use-cases/employee-scheduling/src/main/resources/application.properties
@@ -1,4 +1,12 @@
########################
+# General properties
+########################
+# Enable CORS for runQuickstartsFromSource.sh
+quarkus.http.cors=true
+# Allow all origins in dev-mode
+%dev.quarkus.http.cors.origins=/.*/
+
+########################
# Demo properties
########################
diff --git a/use-cases/facility-location/src/main/resources/application.properties b/use-cases/facility-location/src/main/resources/application.properties
index 7cb644c..0f929de 100644
--- a/use-cases/facility-location/src/main/resources/application.properties
+++ b/use-cases/facility-location/src/main/resources/application.properties
@@ -1,4 +1,12 @@
########################
+# General properties
+########################
+# Enable CORS for runQuickstartsFromSource.sh
+quarkus.http.cors=true
+# Allow all origins in dev-mode
+%dev.quarkus.http.cors.origins=/.*/
+
+########################
# OptaPlanner properties
########################
diff --git a/use-cases/maintenance-scheduling/src/main/resources/application.properties b/use-cases/maintenance-scheduling/src/main/resources/application.properties
index 904574f..915efca 100644
--- a/use-cases/maintenance-scheduling/src/main/resources/application.properties
+++ b/use-cases/maintenance-scheduling/src/main/resources/application.properties
@@ -1,4 +1,12 @@
########################
+# General properties
+########################
+# Enable CORS for runQuickstartsFromSource.sh
+quarkus.http.cors=true
+# Allow all origins in dev-mode
+%dev.quarkus.http.cors.origins=/.*/
+
+########################
# Demo properties
########################
diff --git a/use-cases/order-picking/src/main/resources/application.properties b/use-cases/order-picking/src/main/resources/application.properties
index bd2c759..5755672 100644
--- a/use-cases/order-picking/src/main/resources/application.properties
+++ b/use-cases/order-picking/src/main/resources/application.properties
@@ -1,4 +1,12 @@
########################
+# General properties
+########################
+# Enable CORS for runQuickstartsFromSource.sh
+quarkus.http.cors=true
+# Allow all origins in dev-mode
+%dev.quarkus.http.cors.origins=/.*/
+
+########################
# OptaPlanner properties
########################
diff --git a/use-cases/school-timetabling/src/main/resources/application.properties b/use-cases/school-timetabling/src/main/resources/application.properties
index 8df4933..0f2d2bf 100644
--- a/use-cases/school-timetabling/src/main/resources/application.properties
+++ b/use-cases/school-timetabling/src/main/resources/application.properties
@@ -1,4 +1,12 @@
########################
+# General properties
+########################
+# Enable CORS for runQuickstartsFromSource.sh
+quarkus.http.cors=true
+# Allow all origins in dev-mode
+%dev.quarkus.http.cors.origins=/.*/
+
+########################
# Demo properties
########################
diff --git a/use-cases/vaccination-scheduling/src/main/resources/application.properties b/use-cases/vaccination-scheduling/src/main/resources/application.properties
index f0c5b82..2996546 100644
--- a/use-cases/vaccination-scheduling/src/main/resources/application.properties
+++ b/use-cases/vaccination-scheduling/src/main/resources/application.properties
@@ -1,4 +1,12 @@
########################
+# General properties
+########################
+# Enable CORS for runQuickstartsFromSource.sh
+quarkus.http.cors=true
+# Allow all origins in dev-mode
+%dev.quarkus.http.cors.origins=/.*/
+
+########################
# Demo properties
########################
diff --git a/use-cases/vehicle-routing/src/main/resources/application.properties b/use-cases/vehicle-routing/src/main/resources/application.properties
index 5ecc74c..c685779 100644
--- a/use-cases/vehicle-routing/src/main/resources/application.properties
+++ b/use-cases/vehicle-routing/src/main/resources/application.properties
@@ -1,4 +1,12 @@
########################
+# General properties
+########################
+# Enable CORS for runQuickstartsFromSource.sh
+quarkus.http.cors=true
+# Allow all origins in dev-mode
+%dev.quarkus.http.cors.origins=/.*/
+
+########################
# OptaPlanner properties
########################