Parcourir la source

Merge branch 'master' of ssh://gitea.spawntree.de:1122/spawntree/matsen-tool-be

master
Florian Eisenmenger il y a 2 ans
Parent
révision
52601949f0
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. +7
    -1
      config/packages/nelmio_cors.yaml

+ 7
- 1
config/packages/nelmio_cors.yaml Voir le fichier

@@ -2,12 +2,18 @@ nelmio_cors:
defaults:
origin_regex: true
# allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
# allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
# allow_headers: ['Content-Type', 'Authorization']
# expose_headers: ['Link']
expose_headers: ['*']
allow_origin: [ '*' ]
allow_headers: [ '*' ]
allow_methods: ['GET', 'OPTIONS', 'POST', 'PATCH', 'DELETE']
max_age: 3600
paths:
'^/': null
# '^/api/':
# allow_origin: [ '*' ]
# allow_headers: [ '*' ]
# allow_methods: [ '*' ]
# max_age: 3600

Chargement…
Annuler
Enregistrer