chore(dependencies): Add and update CORS config
This commit is contained in:
@ -47,6 +47,7 @@
|
||||
"compression": "^1.6.0",
|
||||
"connect-mongo": "^1.3.2",
|
||||
"cookie-parser": "^1.4.0",
|
||||
"cors": "^2.8.3",
|
||||
"csurf": "^1.8.3",
|
||||
"d3": "~3.5.17",
|
||||
"debug": "^2.2.0",
|
||||
|
@ -21,9 +21,6 @@
|
||||
"extended": true,
|
||||
"limit": "100kb"
|
||||
},
|
||||
"cors": {
|
||||
"origin": true,
|
||||
"credentials": true
|
||||
}
|
||||
"cors": false
|
||||
}
|
||||
}
|
||||
|
@ -16,6 +16,13 @@
|
||||
"compression": {},
|
||||
"morgan": {
|
||||
"params": ":status :method :response-time ms - :url"
|
||||
},
|
||||
"cors": {
|
||||
"params": {
|
||||
"origin": true,
|
||||
"credentials": true,
|
||||
"maxAge": 86400
|
||||
}
|
||||
}
|
||||
},
|
||||
"session": {
|
||||
|
Reference in New Issue
Block a user