Commit 00057648 by chenjinjing

no message

parent 9e59baf2
...@@ -11,7 +11,7 @@ export class httpServer { ...@@ -11,7 +11,7 @@ export class httpServer {
httpServer.all('*', (req, res, next) => { httpServer.all('*', (req, res, next) => {
res.header('Access-Control-Allow-Origin', req.headers.origin); res.header('Access-Control-Allow-Origin', req.headers.origin);
res.header("Access-Control-Allow-Headers", "X-Requested-With"); res.header("Access-Control-Allow-Headers", "X-Requested-With");
res.header('Access-Control-Allow-Headers', 'Content-Type,request-origin,userid,token'); res.header('Access-Control-Allow-Headers', 'Content-Type,request-origin,userid,token,Authorization');
res.header("Access-Control-Allow-Methods", "PUT,POST,GET,DELETE,OPTIONS"); res.header("Access-Control-Allow-Methods", "PUT,POST,GET,DELETE,OPTIONS");
res.header('Access-Control-Allow-Credentials', true); res.header('Access-Control-Allow-Credentials', true);
res.header("X-Powered-By", ' 3.2.1'); res.header("X-Powered-By", ' 3.2.1');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment