Answers for "axios cors problem"

1

axios delete is throwing cors error

headers: {"Access-Control-Allow-Origin": "*"}
Posted by: Guest on June-02-2020
0

cors axios

const cors = require("cors");

app.options("*", cors({ origin: 'http://localhost:8000', optionsSuccessStatus: 200 }));

app.use(cors({ origin: "http://localhost:8000", optionsSuccessStatus: 200 }));
Posted by: Guest on October-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language