diff --git a/api/srv.consult.js b/api/srv.consult.js index 607a681..dc16c7b 100644 --- a/api/srv.consult.js +++ b/api/srv.consult.js @@ -73,7 +73,13 @@ function returnNoCORS(res) { } function returnSuccess(res) { - res.writeHead(200, { "Content-Type": "application/json;charset=UTF-8" }); + res.writeHead( + 200, + { + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json;charset=UTF-8", + } + ); let dat = { code: 4 }; res.end(JSON.stringify(dat)); }