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 middleware/extension #221
Labels
Comments
Hey @BendingBender 👋
This would be a good addition 👍 I don't have much spare time but I can give it a try next week end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would you be interested in a basic auth middleware/extension? Currently, if a URL contains basic auth credentials
fetch
and by extensionwretch
will just throw an error.The middleware I'd like to implement would extract the username/pw from the URL and add them as an
Authorization
header.The extension could provide a
basicAuth
method so that users don't have know how to construct a basic auth header themselves.The text was updated successfully, but these errors were encountered: