Commit 6c11dd99 authored by 何硕's avatar 何硕

Merge branch 'heshuo' into 'master'

test

See merge request !15
parents 40df6f9f 9dafc231
......@@ -16,7 +16,7 @@ let fs = require("fs");
// });
//allow custom header and CORS
app.all('*',function (req, res, next) {
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Origin','https://livesocket.xueyoubangedu.com');
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');
......
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