CORS nastavitve v repozitorij
parent
5251b75949
commit
11ad803338
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue