DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+7 =
Submit