Ajax unauthorized display status: 0 instead of 401

#1

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):

  1. Create a simple test ajax method which is contained on a forms authenticated page.
  2. Login to the website and navigate to the page containing the ajax test method.
  3. Remove the authentication cookie or clear the browser history to remove the authentication.
  4. Run the ajax method and look at the returned status code.

Actual Result (gifs and screenshots are welcome!):

B

Expected result:
C

Reproduces how often:
Everytime

Brave Version(about:brave):
Version 0.59.35 Chromium: 72.0.3626.81 (Official Build) (64-bit)

Reproducible on current live release (yes/no):
Yes

Additional Information:
OS: Windows 10 Professional
Authentication: Forms Authentication
Site: C# Web Forms
Framework: 4.5.1
JQuery: 3.1.1
Method: POST
Content Type: application/json; charset=utf-8
Data Type: json

A and B: Brave
C and D: Chrome

closed #2

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.