Skip to content

Tag: basic-authentication

Ajax: HTTP Basic Auth and authentication cookie

I want to store the HTTP basic authentication headerline in an authentication cookie, so that I don’t have to deal with the authorisation header in subsequent requests (I’m using jQuery): Whilst this seems to work for the first user who logs in, it doesn’t work for any other users within the browser session, because the subsequent authorisation headers are added