[resolved] How to fix Access-Control-Allow-Origin error (2 posts)

  1. kbhat
    Posted 2 years ago #

    This plugin is great and works great in Mozilla. But on Chrome, I am getting the below mentioned error.

    XMLHttpRequest cannot load http://www.example.com/index.php/page/2/. Origin http://example.com is not allowed by Access-Control-Allow-Origin.

    If I change the address to http://www.example.com, infinite scroll works fine. What changes do I need to make if I want to work without 'www' in the address?

    Any help will be greatly appreciated. Thanks in advance.


  2. kbhat
    Posted 2 years ago #

    I had to do 301 Redirect from Non-WWW URLs to WWW URLs. Not at all related to this plugin. My bad.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Infinite-Scroll
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic