Skip to content

Show AJAX error in the browser console#589

Merged
javuto merged 6 commits intomainfrom
ajax-redirect-login
Feb 3, 2025
Merged

Show AJAX error in the browser console#589
javuto merged 6 commits intomainfrom
ajax-redirect-login

Conversation

@javuto
Copy link
Collaborator

@javuto javuto commented Feb 3, 2025

Since AJAX requests must follow 302s transparently, is not possible to catch when a request to a data JSON endpoint redirects to something else (login page), so it needs changes to the server response. Also tried to use the fetch method in JavaScript but it was not working correctly and code was too messy. So I just output the error in the console and #138 can be closed as not possible.

@javuto javuto added the osctrl-admin osctrl-admin related changes label Feb 3, 2025
@javuto javuto self-assigned this Feb 3, 2025
@javuto javuto merged commit 3998cdc into main Feb 3, 2025
52 checks passed
@javuto javuto deleted the ajax-redirect-login branch February 3, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

osctrl-admin osctrl-admin related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant