Idea: Loading scripts without "http" or "https"
-
I recently ran into an issue with this plugin as the website that I use it runs on HTTPS and only accepts assets from HTTPS sources. However, on line 28 of
sc-insert.php
in your plugin, you make a call for jQuery from an HTTP URL which broke the plugin on my website.My suggestion is to replace this line of code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
With:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
So that you can allow the server to resolve whether or not to use an HTTP or HTTPS URL. This should also be used for the other 3rd party assets as well, as I was noticing the same issue with the sharing popup that you display (coming from an HTTP URL instead of an HTTPS).
- The topic ‘Idea: Loading scripts without "http" or "https"’ is closed to new replies.