Skip to content

Commit

Permalink
Specify explicit default value for sails.config.cors.allRoutes
Browse files Browse the repository at this point in the history
  • Loading branch information
sgress454 committed Feb 4, 2016
1 parent 2fc1620 commit d6efda0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/hooks/cors/README.md
Expand Up @@ -41,6 +41,7 @@ This hook sets the following implicit default configuration on `sails.config`:
| Property | Type | Default |
|-----------------------------------------------|:-------------:|-----------------|
| `sails.config.cors.origin` | ((string)) | `'*'`
| `sails.config.cors.allRoutes` | ((boolean)) | `false`
| `sails.config.cors.credentials` | ((boolean)) | `true`
| `sails.config.cors.methods` | ((string)) | `'GET, POST, PUT, DELETE, OPTIONS, HEAD'`
| `sails.config.cors.headers` | ((string)) | `'content-type'`
Expand Down
1 change: 1 addition & 0 deletions lib/hooks/cors/index.js
Expand Up @@ -28,6 +28,7 @@ module.exports = function(sails) {
defaults: {
cors: {
origin: '*',
allRoutes: false,
credentials: true,
methods: 'GET, POST, PUT, DELETE, OPTIONS, HEAD',
headers: 'content-type',
Expand Down

0 comments on commit d6efda0

Please sign in to comment.