TinyPass JS fails to load over HTTPS
-
This plugin will fail to load the necessary TinyPass javascript on sites being loaded over HTTPS. This is because the plugin attempts to load the TinyPass javascript library over HTTP (standard), which gets blocked on most browsers to avoid loading insecure content over a secure connection.
This issue can be fixed by updating the plugin to load the JS library over HTTPS by editing line 15 of /jslite/tinypass.php:
define('TINYPASS_TPM_JS', 'https://code.tinypass.com/tpl/d1/tpm.js');
If you’re using legacy mode, you would need to edit line 58 of /legacy/legacy.php:
wp_register_script('tinypass_js', 'https://code.tinypass.com/tinypass.js');
Alternately, you should also be able to drop the protocol from both and load them based on the protocol of the site, i.e.:
define('TINYPASS_TPM_JS', '//code.tinypass.com/tpl/d1/tpm.js');
Hope this can be patched in the plugin and that it helps others in the meantime.
- The topic ‘TinyPass JS fails to load over HTTPS’ is closed to new replies.