Shopify force TLS to external domains?

Solved
SHPMP
Tourist
8 1 1

Hi,

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.

It is a javascript hosted on http://api.everyscape.com which does use old flash player.

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?

Thank you.

0 Likes
SHPMP
Tourist
8 1 1

SHPMP_0-1613093204695.png

Can Shopify advise why upgrading to TLS?

0 Likes
tim
Shopify Expert
2937 141 982

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...

Want to hire me to tweak a theme? Mail me at tairli@yahoo.com!
My post solved your problem? Like it!
SHPMP
Tourist
8 1 1

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.

0 Likes