To search for discount codes. It returns a 303 response with a link to the discount code. If I turn on "automatically follow redirects", I get an HTML response asking for authorization. I am not sure what's happening there, but I am guessing auth headers are not passed on to the redirect. I have tried making this request both through postman and server (axios) So a possible workaround is to not automatically follow redirect and try to parse the href and make a second request. Is there any better way?