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
Despite setting an HTTPS URL in capacitor.config.ts, when ionic capacitor run android --livereload --external is run, the app loads the HTTP version of the URL.
Upon inspecting the generated android\app\src\main\assets\capacitor.config.json file, it also shows that is it has removed the HTTPS from the URL and is using the HTTP instead.
Ionic should use the server URL set in the config AS-IS. Stripping the protocol and using http by default defeats the purpose of setting an custom server URL entirely.
My dev server is properly configured to use SSL, I generated the certificates and keys and added everything to the trust root and the live-server URL is accessible without any warnings in my phone via Chrome.
The text was updated successfully, but these errors were encountered:
Capacitor Version
Capacitor Doctor Latest Dependencies: @capacitor/cli: 6.1.2 @capacitor/core: 6.1.2 @capacitor/android: 6.1.2 @capacitor/ios: 6.1.2 Installed Dependencies: @capacitor/ios: not installed @capacitor/cli: 6.1.2 @capacitor/core: 6.1.2 @capacitor/android: 6.1.2 [success] Android looking great! 👌
Other API Details
Platforms Affected
Current Behavior
Despite setting an HTTPS URL in
capacitor.config.ts
, whenionic capacitor run android --livereload --external
is run, the app loads the HTTP version of the URL.Upon inspecting the generated android\app\src\main\assets\capacitor.config.json file, it also shows that is it has removed the HTTPS from the URL and is using the HTTP instead.
However, once the dev server exits this file changes the URL to https:// again.
It seems http is being hardcoded here:
capacitor/cli/src/util/livereload.ts
Line 164 in e4b0540
Expected Behavior
Ionic should use the server URL set in the config AS-IS. Stripping the protocol and using http by default defeats the purpose of setting an custom server URL entirely.
Project Reproduction
https://github.com/ionic-team/starters
Additional Information
My dev server is properly configured to use SSL, I generated the certificates and keys and added everything to the trust root and the live-server URL is accessible without any warnings in my phone via Chrome.
The text was updated successfully, but these errors were encountered: