|
@@ -18,8 +18,8 @@ app.all('*', (req, res, next) => {
|
|
|
res.header("Access-Control-Allow-Origin", req.headers.Origin || req.headers.origin || 'https://cangdu.org');
|
|
|
res.header("Access-Control-Allow-Headers", "Content-Type, Authorization, X-Requested-With");
|
|
|
res.header("Access-Control-Allow-Methods", "PUT,POST,GET,DELETE,OPTIONS");
|
|
|
- res.header("Access-Control-Allow-Credentials", true); //可以带cookies
|
|
|
- res.header("X-Powered-By", '3.2.1')
|
|
|
+ res.header("Access-Control-Allow-Credentials", true); //可以带cookies
|
|
|
+ res.header("X-Powered-By", 'Express');
|
|
|
if (req.method == 'OPTIONS') {
|
|
|
res.sendStatus(200);
|
|
|
} else {
|