wwwhisper icon indicating copy to clipboard operation
wwwhisper copied to clipboard

Prevent 401 error on open routes

Open dustinkerstein opened this issue 7 years ago • 4 comments

I get this error on open routes:

Failed to load resource: the server responded with a status of 401 () /wwwhisper/auth/api/whoami/?_=1525223489528

Is there any way to prevent this?

dustinkerstein avatar May 02 '18 01:05 dustinkerstein

Do you see this in JavaScript console or as a part of a page?

wrr avatar May 04 '18 12:05 wrr

This is visible in the JavaScript console

dustinkerstein avatar May 04 '18 14:05 dustinkerstein

401 seems to be a proper response, but I will see if there is anything that can be done to prevent the error message from showing in the console.

The open routes still show a user name and logout button for logged-in users. To determine if the user is logged in, the /wwwhisper/auth/api/whoami/ is contacted which returns either a user name or 401 (if the user is not logged-in).

wrr avatar May 04 '18 16:05 wrr

K cool. Yeah, I just would like to hide this error since 99.999% of website visits won't be logged in via wwwhisper and I'd rather not provide this error message as a breadcrumb for curious hackers.

dustinkerstein avatar May 10 '18 15:05 dustinkerstein