WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. kbhat
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/infinite-scroll/

  2. kbhat
    Member
    Posted 1 year 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

About this Topic