aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/reference.conf
diff options
context:
space:
mode:
authorzachdriver <zach@driver.xyz>2018-02-22 11:31:51 -0800
committerGitHub <noreply@github.com>2018-02-22 11:31:51 -0800
commitd48406367be713fe8fd24f8dea15545817906cd4 (patch)
tree0ae98459f1c3d28953922a0ab1170fa83fc5f85b /src/main/resources/reference.conf
parentd534ce2309052329506b31b17ae137950757890f (diff)
parent2059634d2fa2c28ddf2b992bc36ab3d96f3c2512 (diff)
downloaddriver-core-d48406367be713fe8fd24f8dea15545817906cd4.tar.gz
driver-core-d48406367be713fe8fd24f8dea15545817906cd4.tar.bz2
driver-core-d48406367be713fe8fd24f8dea15545817906cd4.zip
Merge pull request #104 from drivergroup/zsmith/reject-corsv1.8.2
Respond with correct cors headers for all rejections
Diffstat (limited to 'src/main/resources/reference.conf')
-rw-r--r--src/main/resources/reference.conf20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/main/resources/reference.conf b/src/main/resources/reference.conf
index 16dcfda..74ad206 100644
--- a/src/main/resources/reference.conf
+++ b/src/main/resources/reference.conf
@@ -2,7 +2,7 @@
# Default settings for driver core. Any settings defined by users of #
# this library will take precedence. See the documentation of the #
# Typesafe Config Library (https://github.com/lightbend/config) for #
-# more information. #
+# more information. #
######################################################################
# This scope is for general settings related to the execution of a
@@ -10,6 +10,24 @@
application {
baseUrl: "localhost:8080"
environment: "local_testing"
+
+ cors {
+ allowedMethods: ["GET", "PUT", "POST", "PATCH", "DELETE", "OPTIONS"]
+ allowedOrigins: [
+ {
+ scheme: http
+ hostSuffix: localhost
+ },
+ {
+ scheme: https
+ hostSuffix: driver.xyz
+ },
+ {
+ scheme: https
+ hostSuffix: driver.network
+ }
+ ]
+ }
}
# Settings about the auto-generated REST API documentation.