eclipse-scout / scout.rt

https://www.eclipse.org/scout/
Eclipse Public License 2.0
34 stars 39 forks source link

AccessControl.ts: let app handle bootstrap errors #1196

Closed cguglielmo closed 1 week ago

cguglielmo commented 3 weeks ago

With Microsoft Edge, if a tab is closed and reopened after the http session has expired, the index.html is loaded from cache without revalidating which starts the bootstrap requests. These requests will fail and may return 401 (Unauthorized). In that case, the app would trigger a page reload because the login site needs to be displayed. Unfortunately, the status code gets lost for the permission call, so the message "Permissions were not synchronized successfully." is shown and the user has to manually reload the page.

395126