How do I use Shopify BuButton.Js from a secure site

37 views Asked by At

This is the CDN that I am attempting to use:

<script src="http://sdks.shopifycdn.com/js-buy-sdk/v1/latest/index.umd.min.js"></script>

This source URL is not secure, but my website is, therefore, I am getting a mixed-content error when my site runs. What is the solution to this problem? What am I missing here?

1

There are 1 answers

0
chg On

Open the link shopifycdn js and copy it into your own .js file with their copyright header included and use it. It has MIT license and therefore you can use it as your own.