Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: javascript and css not referencing https  (Read 1484 times)

Offline srhodes

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
javascript and css not referencing https
« 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”.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5517
  • Karma: +269/-2
    • View Profile
Re: javascript and css not referencing https
« Reply #1 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

Offline srhodes

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: javascript and css not referencing https
« Reply #2 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.

 

Powered by SMFPacks Social Login Mod