Skip to content

Commit

Permalink
Enable secure flag
Browse files Browse the repository at this point in the history
  • Loading branch information
algomaster99 committed Feb 28, 2020
1 parent 2d24346 commit 44ed970
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app.ts
Expand Up @@ -74,7 +74,7 @@ class App {
*/
cookie: {
maxAge: cookieExpiry * 1000,
// secure: true,
secure: true,
sameSite: 'none',
},
})
Expand All @@ -95,6 +95,9 @@ class App {
this.app.use(passport.initialize());
this.app.use(passport.session());

// Put IP of https://vega.github.io/editor instead of 1
this.app.set('trust proxy', 1);

this.app.engine('pug', require('pug').__express);
this.app.set('views', __dirname + '/views');
this.app.set('view engine', 'pug');
Expand Down

1 comment on commit 44ed970

@vercel
Copy link

@vercel vercel bot commented on 44ed970 Feb 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.