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
If you pass undefined, the parsed variable becomes undefined and then you try to access parsed.protocol. Of course I wouldn't pass undefined intentionally, but if I have some config object and property is missing, then you get this unexpected behavior in browser.
This issue is being automatically closed because it does not follow the issue template. Please read the issue template carefully and follow all of the instructions when opening a new issue.
Describe the bug
There is probably a bug in
axios/lib/helpers/isURLSameOrigin.js
Line 56 in 7d6bddb
If you pass
undefined
, theparsed
variable becomesundefined
and then you try to accessparsed.protocol
. Of course I wouldn't passundefined
intentionally, but if I have some config object and property is missing, then you get this unexpected behavior in browser.To Reproduce
Expected behavior
At least error message saying that the url should be string, not undefined.
Environment
Additional context/Screenshots
...
The text was updated successfully, but these errors were encountered: