Don't send default header
See original GitHub issueIf a header has been set as a default, there does not appear to be any way to skip it on an individual request. Setting null
or undefined
doesn’t do anything.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:56
- Comments:71 (5 by maintainers)
Top Results From Across the Web
Axios - Remove headers Authorization in 1 call only
You can change the default headers to an empty string, ... A simple solution is to remove all common header from a new...
Read more >HTTP Requestor Default Header - how to not pass ...
In the HTTP requestor Connector, i want to send a Default Header to the target . I am able to accomplish it to...
Read more >Config Defaults | Axios Docs
Config Defaults. You can specify config defaults that will be applied to every request. ... axios.defaults.headers.common['Authorization'] = AUTH_TOKEN; ...
Read more >Fetch API
These options govern how fetch sets the HTTP Referer header. ... "same-origin" – the default, don't send for cross-origin requests, ...
Read more >Using Axios to set request headers
We can address this by specifying configuration defaults. This code sets authorization headers for all requests: axios.defaults.headers.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
works for me
I had the same problem but solved with
delete axios.defaults.headers.common["Authorization"]; // or which ever header you have to remove