Skip to content

Commit 5314397

Browse files
author
symfony-flex-server[bot]
authored
Merge pull request #308
2 parents d3c53b7 + 330a2de commit 5314397

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
nelmio_cors:
2+
defaults:
3+
origin_regex: true
4+
allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
5+
allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
6+
allow_headers: ['Content-Type', 'Authorization']
7+
max_age: 3600
8+
paths:
9+
'^/': ~

nelmio/cors-bundle/1.5/manifest.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"bundles": {
3+
"Nelmio\\CorsBundle\\NelmioCorsBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/"
7+
},
8+
"env": {
9+
"CORS_ALLOW_ORIGIN": "^https?://localhost:?[0-9]*$"
10+
},
11+
"aliases": ["cors"]
12+
}

0 commit comments

Comments
 (0)