Skip to content

Commit

Permalink
fix: Clear-Site-Data header needs to be double quoted
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Kolstad committed Apr 6, 2021
1 parent 696004b commit 2850052
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/routes/logout.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const Controller = require('./controller');

class HealthCheckController extends Controller {
class LogoutController extends Controller {
constructor(config) {
super(config);
this.get('/', this.logout);
Expand All @@ -15,9 +15,9 @@ class HealthCheckController extends Controller {
if (req.logout) {
req.logout();
}
res.set('Clear-Site-Data', '*');
res.set('Clear-Site-Data', '"cookies"');
res.redirect(`${this.config.baseUriPath}/`);
}
}

module.exports = HealthCheckController;
module.exports = LogoutController;

0 comments on commit 2850052

Please sign in to comment.