diff options
| author | Tom Harley | 2018-04-20 17:32:26 +0100 |
|---|---|---|
| committer | Tom Harley | 2018-04-20 17:32:26 +0100 |
| commit | 67afa3e0e9ca77d32bcc44faafecc8b716bc439d (patch) | |
| tree | c69c00cf78fef4b34a59635342fb96a3404bf9a1 /src/cors/index.js | |
| parent | Finalise CORS support with package corser (diff) | |
| download | medicine-67afa3e0e9ca77d32bcc44faafecc8b716bc439d.tar.gz medicine-67afa3e0e9ca77d32bcc44faafecc8b716bc439d.zip | |
Include authoris/zation headers in CORS
Diffstat (limited to 'src/cors/index.js')
| -rw-r--r-- | src/cors/index.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cors/index.js b/src/cors/index.js index 96ffa61..7e21093 100644 --- a/src/cors/index.js +++ b/src/cors/index.js @@ -1,2 +1,8 @@ -const cors = require('corser').create; +const corser = require('corser'); +const cors = corser.create.bind(null, { + requestHeaders: corser.simpleRequestHeaders.concat([ + 'Authorisation', + 'Authorization' + ]) +}); module.exports = { cors: cors }; |
