use-ink / contracts-ui

Web application for deploying wasm smart contracts on Substrate chains that include the FRAME contracts pallet
https://contracts-ui.substrate.io/
GNU General Public License v3.0
62 stars 47 forks source link

Can't connect to local node in Safari when using deployed app #400

Closed cmichi closed 5 months ago

cmichi commented 1 year ago

Describe the bug Opening https://contracts-ui.substrate.io/ in Safari 16.2 and selecting "Local Node" results in a JavaScript error and the site not loading:

Bildschirm­foto 2023-01-24 um 08 30 49

Expected behavior The site should either load or display a note that it doesn't work in Safari.

Desktop:

statictype commented 1 year ago

We don't really support Safari indeed. It goes out of its way to block insecure content so connecting to a non-secure WebSocket endpoint from a secure origin is not really possible plus there are no signer extensions available (to my knowledge) making live chain interaction impossible. If you really need to use Safari with a dev node I suggest running Contracts UI locally as described here Will add a user warning asap.

athei commented 1 year ago

Safari sticks closer to the WebSocket standard which disallows this behaviour. There is no way for contracts ui to fix this.