Created
February 14, 2019 17:12
-
-
Save purushotamrai/2aaeaf4563c3860110ad133841e29b56 to your computer and use it in GitHub Desktop.
Getting Started with ReactJS and Drupal - Step 4.2 - Drupal services CORS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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