Created
January 30, 2020 08:28
-
-
Save juanmaguitar/c32a2cf182bdfb693dd54f3500879d3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const app = require('express')() | |
app.get('/', (req, res) => res.set('Access-Control-Allow-Origin', '*').status(400).send('ok')) | |
app.options('/', (req, res) => res.set('Access-Control-Allow-Origin', '*').set('Access-Control-Allow-Headers', 'Authorization').send()) | |
app.listen(8080, () => console.log('server up')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment