You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, my situation is: i'm using require.js to load json configurations, which are dynamically generated by a server script, but are inaccessible when there's no logged in session, and returns status 401. I'd like to capture this situation and redirect to login screen when this happens.
in the docs I've only found config.text.onXhrComplete, but the execution doesn't reach this callback if status is 4xx or 5xx. In the code I've found errback(err.xhr) and apparently it calls onLoad.error, but I can't find how to set this onLoad.error.
Is this implemented as configuration, or needs to be customized in core?
Thanks.
The text was updated successfully, but these errors were encountered:
Hello, my situation is: i'm using require.js to load json configurations, which are dynamically generated by a server script, but are inaccessible when there's no logged in session, and returns status 401. I'd like to capture this situation and redirect to login screen when this happens.
in the docs I've only found
config.text.onXhrComplete
, but the execution doesn't reach this callback if status is 4xx or 5xx. In the code I've founderrback(err.xhr)
and apparently it callsonLoad.error
, but I can't find how to set thisonLoad.error
.Is this implemented as configuration, or needs to be customized in core?
Thanks.
The text was updated successfully, but these errors were encountered: