You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:common, delete, get, head, post, put, patch have been added to config.headers by axios
Expected behavior
Expected Console Log result:
config.headers
{
'X-header1': 'headerValue1'
}
Environment
NodeJS Back-end project using ES6 modules and testing with Jasmine (the only testing framework that works without additional transpiler for ES6 projects)
Axios Version ^0.27.2
Node.js Version v14.17.0
OS: Ubuntu 20.04.4 LTS
Additional Library Versions: Jasmine ^4.2.1
The text was updated successfully, but these errors were encountered:
Describe the bug
axios request interceptor adds additional headers
To Reproduce
Console Log result:
Problem:
common
,delete
,get
,head
,post
,put
,patch
have been added toconfig.headers
byaxios
Expected behavior
Expected Console Log result:
Environment
NodeJS Back-end project using ES6 modules and testing with Jasmine (the only testing framework that works without additional transpiler for ES6 projects)
^0.27.2
v14.17.0
Ubuntu 20.04.4 LTS
^4.2.1
The text was updated successfully, but these errors were encountered: