Created
January 12, 2015 10:22
-
-
Save bitflower/65d8d9fd46f2a10c5795 to your computer and use it in GitHub Desktop.
Add CORS support to DaftMonk/angular-fullstack YO generator
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
1. npm install cors | |
2. then in the app module: | |
var cors = require('cors'); | |
//add cors to do the cross site requests | |
app.use(cors()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment