Skip to content

Commit

Permalink
Remove CORS temporarily - npm error
Browse files Browse the repository at this point in the history
  • Loading branch information
manu354 committed Jul 10, 2017
1 parent 7f53cd7 commit 7d05a04
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@

const request = require('request'), Promise = require("bluebird"); //request for pulling JSON from api. Bluebird for Promises.

const app = require('express')(), helmet = require('helmet'), cors = require('cors'), http = require('http').Server(app),
io = require('socket.io')(http); // For websocket server functionality
const app = require('express')(), helmet = require('helmet'), http = require('http').Server(app), io = require('socket.io')(http); // For websocket server functionality
app.use(helmet.hidePoweredBy({setTo: 'PHP/5.4.0'}));
app.use(cors({credentials: false}));
// app.use(cors({credentials: false}));
const port = process.env.PORT || 3000;

app.get('/', function (req, res) {
Expand Down

0 comments on commit 7d05a04

Please sign in to comment.