Commit 3c21364e authored by 何硕's avatar 何硕

Merge branch 'heshuo' into 'master'

test

See merge request !16
parents 6c11dd99 69efca4b
...@@ -16,7 +16,7 @@ let fs = require("fs"); ...@@ -16,7 +16,7 @@ let fs = require("fs");
// }); // });
//allow custom header and CORS //allow custom header and CORS
app.all('*',function (req, res, next) { app.all('*',function (req, res, next) {
res.header('Access-Control-Allow-Origin','https://livesocket.xueyoubangedu.com'); res.header('Access-Control-Allow-Origin','https://zhibo.xueyoubangedu.com');
res.header('Access-Control-Allow-Headers', 'Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild'); res.header('Access-Control-Allow-Headers', 'Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild');
res.header('Access-Control-Allow-Methods', 'PUT, POST, GET, DELETE, OPTIONS'); res.header('Access-Control-Allow-Methods', 'PUT, POST, GET, DELETE, OPTIONS');
......
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