Skip to content

ws:// used in the code report an error under the https protocol #501

@aliuq

Description

@aliuq
index-DrLOjSgh.js:500 Mixed Content: The page at 'https://xxx.xxx/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://xxx.xxx/websocket'. This request has been blocked; this endpoint must be available over WSS.

Uncaught SecurityError: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.
    at fCe.connect (index-DrLOjSgh.js:500:1571)
    at new fCe (index-DrLOjSgh.js:500:1819)
    at index-DrLOjSgh.js:503:693

Should choose ws or wss based on the protocol?

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