Skip to content

CrossStorageClient could not connect in IE 11 #56

@chengtie

Description

@chengtie

I'm debugging a website on my machine with Windows and Windows Subsystem for Linux.

I use cross-storage in my website. I can launch the website https://localhost:3000/sign under Chrome, whereas in IE it raises an error CrossStorageClient could not connect, which blocks the page.

No error in Chrome:
enter image description here

CrossStorageClient could not connect in IE
enter image description here

In the client side, it seems that it is new CrossStorageClient(...) that raises the error.

const storage = new CrossStorageClient(`https://localhost:3000/htmls/hub.html`, {}); 

export async function getSignToken() {
  await storage.onConnect();

If I open https://localhost:3000/htmls/hub.html in IE in a tab, it shows a problem of security certificate, I could click on Go on to the webpage (not recommended) to continue. (The CrossStorageClient could not connect error of the client side is still raised regardless of this).
enter image description here

Here is hub.html on the server side:

<!doctype html>
<head>
  <title>Production Cross Storage Hub</title>
</head>
<body>
  <script type="text/javascript" src="https://github.com/javascripts/hub.js"></script>
  <script>
    CrossStorageHub.init([
        {origin: /:\/\/localhost(:[0-9]*)?$/, allow: ['get', 'set', 'del']},
        {origin: /\.10studio.tech$/, allow: ['get', 'set', 'del']},
        {origin: /:\/\/(www\.)?10studio.tech$/, allow: ['get', 'set', 'del']}
    ]);
  </script>
</body>
</html>

So, does anyone know how to fix this CrossStorageClient could not connect error?

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