Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cors axios

const cors = require("cors");

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

app.use(cors({ origin: "http://localhost:8000", optionsSuccessStatus: 200 }));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cors #axios
ADD COMMENT
Topic
Name
7+8 =