Labs64 / GuideChimp

Create interactive guided product tours in minutes with the most non-technical friendly, lightweight and extendable library.
https://www.labs64.com/guidechimp/
European Union Public License 1.2
203 stars 19 forks source link

Licensing works on localhost with HTTP/HTTPS but will not work on server using HTTP #116

Closed joshberg closed 3 years ago

joshberg commented 3 years ago

Describe the bug The licensing plugin does not seem to function properly using HTTP on my production server. It just hangs.

To Reproduce Steps to reproduce the behavior:

  1. Try to access guidechimp on a server through HTTP instead of HTTPS

Expected behavior I expected it to function the same in my production environment as it did in my dev environment.

Screenshots image

Desktop (please complete the following information):

Additional context There is nothing in the plugin documentation that states it requires HTTPS.

v-rudkovskiy commented 3 years ago

Hello @joshberg

In the licensing plugin we use WebCrypto API, access to the WebCrypto API is restricted to "secure origins" and crypto.subtle is supposed to be undefined in insecure contexts.

Secure origins” are origins that match at least one of the following (scheme, host, port) patterns: (https, , ) (wss, , ) (, localhost, ) (, 127/8, ) (, ::1/128, ) (file, , —) (chrome-extension, , —)

Why are you using unsecured http for your production environment?

joshberg commented 3 years ago

It is an internal only web application. There is no access from the outside internet. I am in the process of converting it to https because of incompatibilities like these. Thank you for the explanation.