Resolve CORS Error

This commit is contained in:
Kouril42
2023-02-19 11:20:39 +01:00
parent 7179f8f752
commit ada539e79a
6 changed files with 91 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
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']
expose_headers: ['Link']
max_age: 3600
paths:
'^/': null