From 04db4e857fceeb15196d8f13d63e987ad214be38 Mon Sep 17 00:00:00 2001 From: Zach Smith Date: Thu, 8 Feb 2018 13:02:07 -0800 Subject: Move rejection handler to DriverRoute --- src/main/resources/reference.conf | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/main/resources/reference.conf') diff --git a/src/main/resources/reference.conf b/src/main/resources/reference.conf index 238ac68..f903234 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 @@ -13,7 +13,20 @@ application { cors { allowedMethods: ["GET", "PUT", "POST", "PATCH", "DELETE", "OPTIONS"] - allowedOrigins: [] + allowedOrigins: [ + { + scheme: http + hostSuffix: localhost + }, + { + scheme: https + hostSuffix: driver.xyz + }, + { + scheme: https + hostSuffix: driver.network + } + ] } } -- cgit v1.2.3