-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Unable to add custom network with basic auth in url #9791
Comments
This is affecting us as well for connecting to private networks. I have seen in the metamask console the following log:
It seems like they are using the builtin It could be fixed if they implement the conversion to authorization header: https://stackoverflow.com/questions/45067331/request-with-url-that-includes-credentials
Username and password can be extracted from the url using a regular expression that would also skip this header appending if the url does not match (does not have basic auth) This way it wouldn't block us to use private networks in metamask, since metamask has no way of specifying headers in custom RPCs. |
Related to #9683. |
@sirasistant The However, I see a recent change to move from Not sure if that has caused an unexpected breaking change? |
Thanks for solving this! 🎉 |
Describe the bug
I've got an ETH mainnet node running behind nginx reverse proxy with basic auth in place. I can access it using using url formatted this way:
https://user:[email protected]
. It worked without issues in metamask too, was using it with success until something broke in metamask in v8.1.0 (worked fine on v8.0.10).Prerequisites:
ETH node running behind nginx reverse proxy with basic auth in place
sorry, I'm not able to share my own!
Steps to reproduce (REQUIRED)
Steps to reproduce the behavior, libraries used with version number, and/or any setup information to easily reproduce:
1
in my case as this is ETH mainnet node)Expected behavior
Metamask should work with my mainnet ETH node behind reverse proxy with basic auth in place.
Screenshots
Browser details (please complete the following information):
Additional context (Error Messages, etc.)
Works fine on metamask 8.0.10. Broken on 8.1.0.
Getting
Could not fetch chain ID. Is your RPC URL correct?
error.Maybe related to this PR: #9487
The text was updated successfully, but these errors were encountered: