Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
YesImKenny committed Mar 3, 2019
1 parent d4d2b1c commit 44d5a56
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,9 @@ const app = express();
const port = 3333;

app.use(bodyParser.json());

// app.use(express.static(path.join(__dirname, './client/dist')));
app.use(express.static('./client/dist'));
// app.use(cors());

app.use((req, res, next) => {
// Website you wish to allow to connect
res.header("Access-Control-Allow-Origin", "*");
// Request headers you wish to allow
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
next();
});
Expand Down

0 comments on commit 44d5a56

Please sign in to comment.