Commit cae1d318 authored by nanahira's avatar nanahira

fix header

parent b3a2a6bf
Pipeline #433 failed with stages
in 15 seconds
......@@ -20,7 +20,7 @@ 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-Headers', 'Content-Type, Content-Length, Authorization, Accept, X-Requested-With');
res.header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS');
if (req.method.toLowerCase() == 'options') {
res.send(203);
......
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