Skip to content

WebSocket over insecure connection error when using HTTPS #86

@TheDcoder

Description

@TheDcoder

Describe the bug
Tracking doesn't work with an HTTPS end-point server, this message is displayed whenever the app is opened after the first initial login:

Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.

To Reproduce
Steps to reproduce the behavior:

  1. Set the server URL to an https:// location
  2. Login
  3. Restart the app
  4. See error

Expected behavior
No error

Smartphone (please complete the following information):

  • Device: ASUS
  • OS: Android 11
  • Browser: Firefox (Fennec) Android System WebView
  • Version: 100.1.3 96

Additional context
This might be a security issue specific to mobiles with Firefox set as the default browser. Somehow the app or website is trying to connect with HTTP even when the page is loaded via HTTPS.

This issue does not happen when the website is directly used from Firefox.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions