Is there a way to force the browser to always pass the authorization header if the credentials are already available?
Using Basic Authentication, if the user is already signed in, the browser will include the username / password in the http request in subsequent http requests ONLY if it receives a 401 response containing an authentication request. The username / password is passed through the authorization header.
Is there a way to force the browser to always include the authorization header after the user logs in?
The reason I am asking this is because I have a CGI application (separate from the main CGI application that serves my dynamic pages) that should use authorization information if present, but should not ask for it if she is not present.
Thanks.
a source to share
if the user is already logged in, the browser will include the username / password in the http request in subsequent http requests ONLY IF it receives a 401 response containing an authentication request
This is not the behavior I see in web browsers; after the browser has received the 401, it always includes authorization after that. Can you provide more details on how to reproduce the problem?
a source to share