Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

only allow requests from domain express

const cors = require('cors');
app.use(cors({
    origin: 'https://www.exemple.com'
}));
Source by www.section.io #
 
PREVIOUS NEXT
Tagged: #requests #domain #express
ADD COMMENT
Topic
Name
3+7 =