Skip to content

Commit

Permalink
Update server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
harishsg99 authored Feb 27, 2021
1 parent 5804eb9 commit 2f91d4b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ const passport = require("passport");
const path = require("path");
const users = require("./routes/api/users");
const dashboard = require("./routes/dashboard");
const cors = require("cors");

const app = express();
app.options('*',cors());

// Bodyparser middleware
app.use(
bodyParser.urlencoded({
Expand Down

0 comments on commit 2f91d4b

Please sign in to comment.