vendredi 14 décembre 2018

Changing request headers on http 302 redirect in Ember

I have a situation where I am sending out a request to our api endpoint passing an authorization: bearer token in the request header. The response comes back as HTTP 302 and the browser sends out a new request to an AWS S3 bucket, which then fails with a 400 as it also has an X-Amz-Algorithm parameter in addition to the authorization header.

How would I go about removing the authorization header once the initial request responds with a 302 error?

This is using Ember 3.5.1

Thanks




Aucun commentaire:

Enregistrer un commentaire