In Safari browser, Authorization header is getting scraped when request is redirected. It is working in all other browser like Chrome, IE.
I am doing one ajax call where I pass the Authorization header, this API redirect to the other API, with status code 302, in all other browser Authorization Header is persisted when request is redirected. but in safari browser it is not persisted so the redirected API gives 401 unauthorized response.
I am using safari 12.1.2 version. I have also tried to change the request redirect mode by setting requestOptions.redirect
to manual
and handling redirection manually but that also not worked, it was giving 401 in that model also.
Any one have faced this type of issue ? I have referred multiple resources but not found any solution.
Please Help.