New to shopify. And minimal dev experience. I'm attempting to setup our old video tour we've had for years to be hosted on our upcoming shopify site.
I'm running into issues with it executing that I believe it due to Shopify / debut theme forcing a TLS upgrade. If I reference chrome diag / application tab. The api.js script I'm attempting to execute shows "nothing to preview." If I reference path or attempt to open script there it brings me to a Server Error in '/' Application page because the URL is https not http.
I've also tried saving the script code to assets folder and calling it via shopify CDN path. But the script's code it is referencing multiple assets with http connections to api.everyscape.com which gives same result.
Any suggestions on why shopify / theme appears to be upgrading this connection to TLS?
Solved! Go to the solution
This is an accepted solution.
It's not Shopify, but your browser.
Basically, if your page is served via HTTPS (as this is the case with Shopify) any request to HTTP addresses on this page is considered unsafe and either blocked, or browser tries to upgrade it to HTTPS.
This may be a deal breaker, but all modern browsers are like this.
If you can't use HTTPS or re-host your your files in Shopify, the only option is to use a proxy server...
Thanks for response. Could share if I'm understanding correctly?
You are referring to the fact I'm attempting to serve my own secure page to execute a script which source is external to non secure server. Browser insists on maintaining TLS.
But if I can host a non secure page elsewhere and execute the script there all will work fine.
Edit: I just confirmed it works. Thanks for help.