Skip to content

Script causing SecurityError when run from site on https server #1

@andrewheiss

Description

@andrewheiss

Using the latest version of remark (as of 2018-07-04), attempting to use remarksync triggers the following security error in Firefox:

SecurityError: The operation is insecure.  remarksync.js:555

connect             https://omnibs.github.io/remarksync/web/static/assets/js/remarksync.js:555:19
start               https://omnibs.github.io/remarksync/web/static/assets/js/remarksync.js:1165:4
SlideSync           https://omnibs.github.io/remarksync/web/static/assets/js/remarksync.js:1255:3
<anonymous>         https://omnibs.github.io/remarksync/web/static/assets/js/remarksync.js:1306:20

The error can be reproduced by using boilerplate-remote.html and modifying it slightly:

<script src="https://remarkjs.com/downloads/remark-latest.min.js">
</script>
<script>
  var slideshow = remark.create();
</script>
<script src="https://omnibs.github.io/remarksync/web/static/assets/js/remarksync.js"></script>

Chrome gives more details about the error: the Phoenix Heroku app seems to not support WSS:

The page at 'https://example.com' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://calm-caverns-50885.herokuapp.com/socket/websocket?token=undefined&vsn=1.0.0'. This request has been blocked; this endpoint must be available over WSS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions