Commit b3a2a6bf authored by nanahira's avatar nanahira

fix header again

parent cad2a982
Pipeline #431 failed with stages
in 45 seconds
......@@ -20,6 +20,8 @@ async function main() {
app.all('*', function (req, res, next) {
res.header("Cache-Control", "no-cache");
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Headers', 'Content-Type, Content-Length, Authorization, Accept, X-Requested-With, Cache-Control');
res.header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS');
if (req.method.toLowerCase() == 'options') {
res.send(203);
} else {
......
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