Commit bb71bdfb by Пронин Евгений

cors

1 parent 611bc9bb
Showing 1 changed file with 3 additions and 1 deletions
......@@ -45,7 +45,9 @@ function makeDevice(cards) {
}
}
app.get("/getRfid", cors(), (req, res) => {
app.use(cors())
app.get("/getRfid", (req, res) => {
var msg = JSON.stringify(state, null, '\t');
if (req.query.callback !== undefined) {
msg = req.query.callback + "(" + msg + ");";
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!