ES6 goodies
This commit is contained in:
parent
314508bcd8
commit
e6ba467d98
@ -1,6 +1,6 @@
|
||||
module.exports = function cors(extraHeaders) {
|
||||
module.exports = function cors (extraHeaders) {
|
||||
return function corsMiddleware (req, res, next) {
|
||||
var baseHeaders = "X-Requested-With, X-Prototype-Version, X-CSRF-Token";
|
||||
let baseHeaders = "X-Requested-With, X-Prototype-Version, X-CSRF-Token";
|
||||
|
||||
if(extraHeaders) {
|
||||
baseHeaders += ", " + extraHeaders;
|
||||
|
Loading…
Reference in New Issue
Block a user