1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: Logout should not be xhr call

details: https://github.com/Unleash/unleash/issues/520
This commit is contained in:
Ivar Conradi Østhus 2020-03-29 20:44:06 +02:00
parent b9a3d74fbb
commit f28b6bd93a
3 changed files with 9 additions and 2 deletions

View File

@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
The latest version of this document is always available in
[releases][releases-url].
## [3.2.20]
- fix: logout should be real request and not just XHR
## [3.2.19]
- fix: default groupId never set for strategies (only in ui)

View File

@ -41,7 +41,6 @@ export function unsecureLogin(path, user) {
export function logoutUser() {
return dispatch => {
dispatch({ type: USER_LOGOUT });
return api.logoutUser().catch(handleError);
window.location = 'logout';
};
}

View File

@ -110,6 +110,11 @@ module.exports = {
changeOrigin: true,
secure: false,
},
'/logout': {
target: process.env.UNLEASH_API || 'http://localhost:4242',
changeOrigin: true,
secure: false,
},
},
port: process.env.PORT || 3000,
},