aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/reference.conf
diff options
context:
space:
mode:
authorZach Smith <zach@driver.xyz>2018-01-26 11:43:52 -0800
committerZach Smith <zach@driver.xyz>2018-02-20 10:34:22 -0800
commita4b2648a288110350c0ff8dc784626668112ab84 (patch)
tree846a3dae554885348bd42b6f8fb1cc6a8200123f /src/main/resources/reference.conf
parent32496bbc8f64f84c8b9bd8b567aa8cc13343414b (diff)
downloaddriver-core-a4b2648a288110350c0ff8dc784626668112ab84.tar.gz
driver-core-a4b2648a288110350c0ff8dc784626668112ab84.tar.bz2
driver-core-a4b2648a288110350c0ff8dc784626668112ab84.zip
Remove rejection handler, respond with default set of allowed methods and origins to all options requests in DriverRoute
Diffstat (limited to 'src/main/resources/reference.conf')
-rw-r--r--src/main/resources/reference.conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/resources/reference.conf b/src/main/resources/reference.conf
index 16dcfda..aed7b12 100644
--- a/src/main/resources/reference.conf
+++ b/src/main/resources/reference.conf
@@ -10,6 +10,20 @@
application {
baseUrl: "localhost:8080"
environment: "local_testing"
+
+ cors {
+ allowedMethods: ["GET", "PUT", "POST", "PATCH", "DELETE", "OPTIONS"]
+ allowedOrigins: [
+ {
+ scheme: http
+ hostSuffix: localhost
+ },
+ {
+ scheme: https
+ hostSuffix: example.com
+ }
+ ]
+ }
}
# Settings about the auto-generated REST API documentation.