Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cors express tutorial

$ npm install cors


const cors = require('cors');

const corsOption = {
    origin: ['http://localhost:3000'],
};
app.use(cors(corsOption));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cors #express #tutorial
ADD COMMENT
Topic
Name
9+9 =