Skip to content

Commit 7d73faa

Browse files
committed
cors issue
1 parent 060e89c commit 7d73faa

File tree

4 files changed

+131
-57
lines changed

4 files changed

+131
-57
lines changed

package-lock.json

Lines changed: 129 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"helmet": "^3.16.0",
2727
"jsonwebtoken": "^8.5.1",
2828
"knex": "^0.16.3",
29-
"mocha": "^6.0.2",
29+
"mocha": "^6.1.4",
3030
"morgan": "^1.9.1",
3131
"node-fetch": "^2.3.0",
3232
"request": "^2.88.0",

src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const morganOption = (NODE_ENV === 'production')
2121
app.use(morgan(morganOption));
2222
app.use(
2323
cors({
24-
origin: CLIENT_ORIGIN
24+
origin: ['*']
2525
})
2626
);
2727
app.use(helmet());

src/server.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ app.use(
1616
})
1717
);
1818

19-
// app.get('/api/*', (req, res) => {
20-
// res.json({ok: true});
21-
// });
2219

2320

2421

0 commit comments

Comments
 (0)