Prevent 401 error on open routes
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?
Do you see this in JavaScript console or as a part of a page?
This is visible in the JavaScript console
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).
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.