New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic auth fails with non latin characters in username or password #1446
Comments
+1 @defdata , you can use next code as a temporary solution:
|
What's the status of this issue currently? To Reproduce:
|
Add unescape can fix my issue:
|
…nvalidCharacterError exception issue.
I have the same issue.. |
@JustinBeckwith Is there any solution for fixing this problem? |
Sorry @jasonsaayman if I re-post on this issue. |
Summary
The usage of btoa for basic auth prevents usage of non latin characters
Not really a big deal as you do not have to use the basic auth and can encode it yourself but thought I'd bring it up at least as passwords are becoming more unique.
axios/lib/adapters/xhr.js
Line 42 in 0499a97
To reproduce try using a password with basic auth that has a ҂ symbol in it or by opening up a console and trying to use the btoa function on a string with a ҂ symbol.
The text was updated successfully, but these errors were encountered: