Skip to content

Commit

Permalink
yep
Browse files Browse the repository at this point in the history
  • Loading branch information
rugglcon committed Aug 27, 2019
1 parent f8850ff commit 6724ed9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ class App {
this.app.options('*', cors({
methods: ['POST', 'DELETE', 'GET', 'HEAD', 'OPTIONS'],
credentials: true,
origin: true
origin: true,
preflightContinue: true
}));
this.app.use((_req, res, next) => {
res.header('Access-Control-Allow-Origin', '*');
Expand Down

0 comments on commit 6724ed9

Please sign in to comment.