Hi. How can we help?

Ajax Product Filter does not work in https - Fixed

You have installed an SSL certificate on your site and product filter does not work (or has stopped working)? It has left the loader that loads indefinitely without showing results?
You'll probably notice a console message like this:

Mixed Content: The page at 'https://page.com' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://page.com?filter=xxxx'. This request has been blocked; the content must be served over HTTPS.


The problem are generated from a Type 301 redirect that your WordPress installation makes because at the end of the link is missing the slash / redirect This character, not a problem if done on the site http but when an SSL certificate is installed, the server interprets it as an attempt to load an http content on a page as https and then something unsafe. To solve the problem just go to insert in functons.php file of your theme this PHP code string that precisely restores the trailing slash url preventing this error:


add_filter( 'yith_wcan_untrailingslashit', '__return_false' );
Was this article helpful?
0 out of 10 found this helpful

Back to Help Center >