-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Bug]: App crash when adding Basic Auth to server.url in Capacitor 6.0 #7327
Comments
I am guessing you also want to remove the Basic Auth string from the Uri before loading the WebView.
|
Here is the code fix I made to solve it locally:
|
This issue has been labeled as |
Same issue happens when you add custom androidScheme like
Reproducible with initial capacitor application 6.1.0 |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Capacitor Version
Other API Details
No response
Platforms Affected
Current Behavior
When adding Basic Auth to server.url app crash and you get an stacktrace that says IllegalArgumentException: allowedOriginRules https://{BasicAuth}/{Domain} is invalid. I know this works well in Capacitor 5.0 with previous versions.
See screenshot
Expected Behavior
App should load when server url includes Basic Auth. If it's intended that Basic Auth will not be allowed please respond with reason for the change.
Project Reproduction
https://github.com/patrik-skilling/public-capacitor-6-basic-auth-demo
Additional Information
No response
The text was updated successfully, but these errors were encountered: