mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Removed ssoOriginCheck from signout endpoint (#10277)
no-issue the ssoOriginCheck exists to ensure that we only allow signin/signup to be called from the specified auth page, this is a very minor security feature in that it forces signins to go via the page you've designated. signout however does not need this protection as the call to signout completely bypasses any UI (this is the same for the call to /token)
This commit is contained in:
parent
2d92793b3f
commit
7dd2b04343
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ module.exports = function MembersApi({
|
|||
}).catch(handleError(401, res));
|
||||
});
|
||||
|
||||
apiRouter.post('/signout', getData(), ssoOriginCheck, (req, res) => {
|
||||
apiRouter.post('/signout', getData(), (req, res) => {
|
||||
res.writeHead(200, {
|
||||
'Set-Cookie': removeCookie()
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue