Merge pull request #308

This commit is contained in:
symfony-flex-server[bot]
2017-12-17 10:41:52 +00:00
committed by GitHub
2 changed files with 21 additions and 0 deletions
@@ -0,0 +1,9 @@
nelmio_cors:
defaults:
origin_regex: true
allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
allow_headers: ['Content-Type', 'Authorization']
max_age: 3600
paths:
'^/': ~
+12
View File
@@ -0,0 +1,12 @@
{
"bundles": {
"Nelmio\\CorsBundle\\NelmioCorsBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"CORS_ALLOW_ORIGIN": "^https?://localhost:?[0-9]*$"
},
"aliases": ["cors"]
}