Skip to content

Instantly share code, notes, and snippets.

@purushotamrai
Created February 14, 2019 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save purushotamrai/2aaeaf4563c3860110ad133841e29b56 to your computer and use it in GitHub Desktop.
Save purushotamrai/2aaeaf4563c3860110ad133841e29b56 to your computer and use it in GitHub Desktop.
Getting Started with ReactJS and Drupal - Step 4.2 - Drupal services CORS
cors.config:
 enabled: true
 # Specify allowed headers, like 'x-allowed-header'.
 allowedHeaders: ['*']
 # 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: true
 # Sets the Access-Control-Max-Age header.
 maxAge: true
 # Sets the Access-Control-Allow-Credentials header.
 supportsCredentials: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment