Answers for "getting cors error in axios"

2

axios delete is throwing cors error

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

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