Author Topic: mixed content issue  (Read 4436 times)

Offline shahiran12395

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +3/-0
    • View Profile
mixed content issue
« on: September 25, 2019, 11:23:17 PM »
hi, im having trouble with Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '<URL>'. This request has been blocked; the content must be served over HTTPS.

how can i solve it?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5772
  • Karma: +274/-2
    • View Profile
Re: mixed content issue
« Reply #1 on: September 26, 2019, 01:16:57 AM »
Hello.
You have few options. First you can change urls for your content to https://, also can set a rule in your htaccess file to redirect all http to https if content on your website

Offline shahiran12395

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +3/-0
    • View Profile
Re: mixed content issue
« Reply #2 on: September 27, 2019, 02:51:57 AM »
i have try using htaccess but nothing change and i using the default abantecart so how can i edit it to https? the mixed error msg is
Mixed Content: The page at 'https://{URL}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://{URL}/index.php?rt=r/product/product/addToCart'. This request has been blocked; the content must be served over HTTPS.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5772
  • Karma: +274/-2
    • View Profile
Re: mixed content issue
« Reply #3 on: September 27, 2019, 05:55:55 AM »
Did you enable SSL in your AbanteCart store settings?

Offline shahiran12395

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +3/-0
    • View Profile
Re: mixed content issue
« Reply #4 on: September 30, 2019, 04:00:29 AM »
i already do it. but still cant got the error. if disable https everything work fine.

Offline Sam_78

  • Sr. Member
  • ****
  • Posts: 270
  • Karma: +42/-1
    • View Profile
Re: mixed content issue
« Reply #5 on: September 30, 2019, 09:16:01 AM »
have you made any changes in your .htaccess file?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5772
  • Karma: +274/-2
    • View Profile
Re: mixed content issue
« Reply #6 on: September 30, 2019, 09:37:19 AM »
When SSL enabled double check that you clear AbanteCart cache. What is your AbanteCart version?

Offline shahiran12395

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +3/-0
    • View Profile
Re: mixed content issue
« Reply #7 on: October 01, 2019, 02:28:24 AM »
already did. still same. is this server is configure wrongly?

btw im using v1.2.15. attach is my admin login page with error alert for reference

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5772
  • Karma: +274/-2
    • View Profile
Re: mixed content issue
« Reply #8 on: October 01, 2019, 07:56:53 AM »
Admin warning is suppose to be there if you access admin via non-secure url and SSL enabled in AbanteCart settings

Offline SAM172788

  • Newbie
  • *
  • Posts: 24
  • Karma: +5/-2
    • View Profile
Re: mixed content issue
« Reply #9 on: October 01, 2019, 03:22:25 PM »
I think this is something related to SecurityMod, you need to contact your hosting company.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5772
  • Karma: +274/-2
    • View Profile
Re: mixed content issue
« Reply #10 on: October 02, 2019, 02:12:57 AM »
It is not security mod, browsers may block insecure request on secure page
https://developers.google.com/web/fundamentals/security/prevent-mixed-content/what-is-mixed-content

Offline shahiran12395

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +3/-0
    • View Profile
Re: mixed content issue
« Reply #11 on: October 04, 2019, 05:41:07 AM »
Admin warning is suppose to be there if you access admin via non-secure url and SSL enabled in AbanteCart settings

i already setup the ssl and make changes using my local then push it to publish..but still the same.. :'( is this serve configuration or my php configuration wrong somewhere?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5772
  • Karma: +274/-2
    • View Profile
Re: mixed content issue
« Reply #12 on: October 04, 2019, 05:57:14 AM »
Hi.
This can be:
  • issue in template
  • invalid SSL ceritifcate
  • htaccess misconfiguration
  • store settings misconfiguration
  • less possible but still, issue in 3rd party extension
  • file cache or HTML cache or CDN if you have it

 

Powered by SMFPacks Social Login Mod