mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #33312 from overleaf/copilot/send-clear-site-data-header
Send `Clear-Site-Data` header on account deletion GitOrigin-RevId: c3f0b5f27cc80a1927518c56436c3a808b144fb7
This commit is contained in:
@@ -293,6 +293,9 @@ async function tryDeleteUser(req, res, next) {
|
||||
UserSessionsManager.promises.untrackSession(user, sessionId).catch(err => {
|
||||
logger.warn({ err, userId: user._id }, 'failed to untrack session')
|
||||
})
|
||||
// Note that the "*" must be in double quotes
|
||||
// https://www.w3.org/TR/clear-site-data/#ref-for-grammardef-
|
||||
res.set('Clear-Site-Data', '"*"')
|
||||
res.sendStatus(200)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user