Link to home
Create AccountLog in
JavaScript

JavaScript

--

Questions

--

Followers

Top Experts

Avatar of cudimax
cudimax

Safari authentication problem
Hello,

We have a webtool, that requires an authentication.
To authenticate a user, we use the xmlhttprequest object in javascript, this object has a function 'open', where you can define the username and password for the request.
This works fine in most of the browsers, but not in safari.
We found out, that safari does not send the credentials, with the request. It doesn't send the authorization header.
Even if we use the basic html authentication, we are not able to autorize the client correctly. Safari sends the autorization header only one time, in the next request, the authorization header is gone again.

Do you have some good information about safari's authorization issues? Or better, does someone have an idea for a workaround?

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of mmconsultantmmconsultant🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of Computer101Computer101🇺🇸

Forced accept.

Computer101
EE Admin

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

JavaScript

JavaScript

--

Questions

--

Followers

Top Experts

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.