mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: Logout should not be xhr call
details: https://github.com/Unleash/unleash/issues/520
This commit is contained in:
		
							parent
							
								
									b9a3d74fbb
								
							
						
					
					
						commit
						f28b6bd93a
					
				| @ -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) | ||||
| 
 | ||||
|  | ||||
| @ -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'; | ||||
|     }; | ||||
| } | ||||
|  | ||||
| @ -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, | ||||
|     }, | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user