Force Browser Access via HTTPS

To configure the browser so that access is via HTTPS, you need to edit the user preferences file. Follow these steps:

  1. Open the preferences file located at:
    /home/vnc/.vnc/
    Command: vim /home/vnc/.vnc/user_pref

  2. Insert the following lines at the end of the file:

user_pref("dom.security.https_only_mode", true);

user_pref("dom.security.https_only_mode_ever_enabled", true);

Remember that sites that stick to HTTP will open in the same way that an external browser would open it, that is, the internal browser will try to use HTTPS, but if this is not possible, it can continue to use HTTP, similar to the settings of common browsers.