I can't get the headers option to work in VueJS. It doesn't get passed (specifically "authorization". The "Content-Type" appears to be changing. I'm calling api on nodejs backend with express. but see screenshot below I don't think that matters as the request is not including the header.
Description
I can't get the headers option to work in VueJS. It doesn't get passed (specifically "authorization". The "Content-Type" appears to be changing. I'm calling api on nodejs backend with express. but see screenshot below I don't think that matters as the request is not including the header.
I've tried creating new headers object:
As you can see in dev tools, nothing is added to request headers. On express side it's not received as well.
Code example
Additional context
Just add, this works with own code and using fetch. So can't see issue on backend or through other code as I'm just changing the request/tool