Advertisement
lopezpagan

DRUPAL: services.yml

Jun 19th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.73 KB | None | 0 0
  1.  cors.config:
  2.     enabled: true
  3.     # Specify allowed headers, like 'x-allowed-header','x-csrf-token','authorization','content-type','accept','origin','x-requested-with'.
  4.     allowedHeaders: ['x-csrf-token','content-type', 'authorization']
  5.     # Specify allowed request methods, specify ['*'] to allow all possible ones.
  6.     allowedMethods: ['GET','POST','PATCH','UPDATE','DELETE', 'PUT', 'HEAD', 'OPTIONS', 'TRACE']
  7.     # Configure requests allowed from specific origins.
  8.     allowedOrigins: ['*']
  9.     # Sets the Access-Control-Expose-Headers header.
  10.     exposedHeaders: false
  11.     # Sets the Access-Control-Max-Age header.
  12.     maxAge: false #1000
  13.     # Sets the Access-Control-Allow-Credentials header.
  14.     supportsCredentials: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement