Skip to content

Commit

Permalink
url success failure
Browse files Browse the repository at this point in the history
  • Loading branch information
surajsnair92 committed Dec 8, 2017
1 parent c61f38d commit f1d6dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ app.use(express.static(path.join(__dirname, 'dist')));
// CORS
app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "http://localhost:4200");
res.header("Access-Control-Allow-Origin", "/http://webdev-nair-suraj.herokuapp.com");
res.header("Access-Control-Allow-Origin", "http://webdev-nair-suraj.herokuapp.com");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
res.header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS");
res.header("Access-Control-Allow-Credentials", "true");
Expand Down

0 comments on commit f1d6dd4

Please sign in to comment.