Commit 018aff02 authored by 神楽坂玲奈's avatar 神楽坂玲奈

cors

parent f665278e
Pipeline #15935 passed with stages
in 40 seconds
......@@ -32,7 +32,7 @@ socket.bind(config.port);
//web management api
http
.createServer(function(req, res) {
res.writeHead(200, { 'Content-Type': 'application/json' });
res.writeHead(200, { 'Content-Type': 'application/json', 'Access-Control-Allow-Origin': '*' });
const result = Router.all.map(from => ({
id: from.id,
name: from.name,
......
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