Created
June 24, 2018 11:40
-
-
Save AndrejGajdos/056242d1554634315f2a0863d76595b6 to your computer and use it in GitHub Desktop.
Enabling CORS. Whole file is available https://github.com/AndrejGajdos/auth-flow-spa-node-react/blob/master/script/server.js
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 corsOptions = { | |
credentials: true, | |
}; | |
app.use(cors(corsOptions)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment