AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: shahiran12395 on September 25, 2019, 11:23:17 PM

Title: mixed content issue
Post by: shahiran12395 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?
Title: Re: mixed content issue
Post by: Basara 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
Title: Re: mixed content issue
Post by: shahiran12395 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.
Title: Re: mixed content issue
Post by: Basara on September 27, 2019, 05:55:55 AM
Did you enable SSL in your AbanteCart store settings?
Title: Re: mixed content issue
Post by: shahiran12395 on September 30, 2019, 04:00:29 AM
i already do it. but still cant got the error. if disable https everything work fine.
Title: Re: mixed content issue
Post by: Sam_78 on September 30, 2019, 09:16:01 AM
have you made any changes in your .htaccess file?
Title: Re: mixed content issue
Post by: Basara on September 30, 2019, 09:37:19 AM
When SSL enabled double check that you clear AbanteCart cache. What is your AbanteCart version?
Title: Re: mixed content issue
Post by: shahiran12395 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
Title: Re: mixed content issue
Post by: Basara 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
Title: Re: mixed content issue
Post by: SAM172788 on October 01, 2019, 03:22:25 PM
I think this is something related to SecurityMod, you need to contact your hosting company.
Title: Re: mixed content issue
Post by: Basara 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
Title: Re: mixed content issue
Post by: shahiran12395 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?
Title: Re: mixed content issue
Post by: Basara on October 04, 2019, 05:57:14 AM
Hi.
This can be: