CORS nastavitve v repozitorij

Jurij Podgoršek 2023-11-12 18:39:57 +01:00
parent 5251b75949
commit 11ad803338
2 changed files with 20 additions and 1 deletions

4
.gitignore vendored
View File

@ -8,7 +8,9 @@
# Ignore configuration files that may contain sensitive information
/web/sites/*/*settings*.php
!/web/sites/default/settings.php
/web/sites/*/*services*.yml
/web/sites/*/default.services.yml
/web/sites/*/services.yml
!/web/sites/*/development.services.yml
# Ignore paths that may contain user-generated content
/web/sites/*/files

View File

@ -0,0 +1,17 @@
parameters:
cors.config:
enabled: true
# Specify allowed headers, like 'x-allowed-header'.
allowedHeaders: ['x-csrf-token','authorization','content-type','accept','origin','x-requested-with']
# Specify allowed request methods, specify ['*'] to allow all possible ones.
allowedMethods: ['*']
# Configure requests allowed from specific origins.
allowedOrigins: ['*']
# Sets the Access-Control-Expose-Headers header.
exposedHeaders: false
# Sets the Access-Control-Max-Age header.
maxAge: false
# Sets the Access-Control-Allow-Credentials header.
supportsCredentials: false
twig.config:
debug: true