AbanteCart Community

eCommerce construction => Installation and Configuration => Topic started by: srhodes on January 25, 2021, 11:10:06 PM

Title: javascript and css not referencing https
Post by: srhodes on January 25, 2021, 11:10:06 PM
Can someone tell me what setting to update to force all connections to point to HTTPS? The AJAX/JS and CSS files are not set to "//" which would cause the browser to auto detect HTTP vs HTTPS paths.

Here are just a few lines from the browser console demonstrating the errors:
Blocked loading mixed active content “http://cart.rh<snip>ns.com/admin/view/default/stylesheet/stylesheet.css”
index.php
Blocked loading mixed active content “http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js”
index.php
Loading failed for the <script> with source “http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js”.
Title: Re: javascript and css not referencing https
Post by: Basara on January 26, 2021, 12:22:08 AM
Hello.
You should set up a redirect on your server. If you have an Apache server try this simple .htaccess rule
http://forum.abantecart.com/index.php/topic,7187.msg29855.html#msg29855
Title: Re: javascript and css not referencing https
Post by: srhodes on January 26, 2021, 12:27:17 PM
I configured both the .htaccess and Nginx configurations to redirect traffic and still have the same result. My reverse-proxy is automatically redirecting HTTP to HTTPS but this application is not following suit.