Description of the issue:
When performing an ajax request whilst unauthorized on a website the status is returned as ‘0’ (failed) instead of ‘401’. I have testing this on Firefox, Internet Explorer and Chrome which all return ‘401’ (unauthorized).
The authentication method is forms authentication on a C# web forms application, framework 4.5.1.
Steps to Reproduce (add as many as necessary):
- Create a simple test ajax method which is contained on a forms authenticated page.
- Login to the website and navigate to the page containing the ajax test method.
- Remove the authentication cookie or clear the browser history to remove the authentication.
- Run the ajax method and look at the returned status code.
Actual Result (gifs and screenshots are welcome!):
Reproduces how often:
Version 0.59.35 Chromium: 72.0.3626.81 (Official Build) (64-bit)
Reproducible on current live release (yes/no):
OS: Windows 10 Professional
Authentication: Forms Authentication
Site: C# Web Forms
Content Type: application/json; charset=utf-8
Data Type: json
A and B: Brave
C and D: Chrome