Title: The request failed
Last modified: March 22, 2021

---

# The request failed

 *  [readman](https://wordpress.org/support/users/readman/)
 * (@readman)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/the-request-failed/)
 * Hi,
    When using the search on my website I get this error message on the search
   field: “The request failed. Please check your connection! Status: 0” It’s strange
   because I get it on the computer I’m logged in WordPress, but I get it also on
   an incognito window on Chrome. If I try from other computer I don’t get the error.
   Any idea why this can happen? Thanks in advance
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fthe-request-failed%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * (@wpdreams)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/the-request-failed/#post-14216445)
 * Hi,
 * Thank you for the details.
 * The issue is, that your site URL is configured as non-www, but the www. version
   is also accessible: [https://i.imgur.com/7HqjuiP.png](https://i.imgur.com/7HqjuiP.png)
 * The plugin requests the ajax handler from WordPress to make the ajax request.
   The URL of the handler is the non-www version of the site. There is however a
   CORS policy set on your server not to allow requests from cross sub-domains.
 * There are two ways to resolve this:
    1. Simply configure wordpress everywhere
   to either use the WWW or the non WWW version of the site, and always redirect
   to either one of those. If you google “redirect wordpress non www” or “redirect
   wordpress to www” there should be tutorials how to do it.
 * 2. ..or lift the CORS policy. That is much more complicated, and you may have
   to contact the server administrator.
 * Best,
    Ernest M.

Viewing 1 replies (of 1 total)

The topic ‘The request failed’ is closed to new replies.

 * ![](https://ps.w.org/ajax-search-lite/assets/icon-256x256.png?rev=3192672)
 * [Ajax Search Lite - Live Search & Filter](https://wordpress.org/plugins/ajax-search-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-search-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-search-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-search-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-search-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-search-lite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/the-request-failed/#post-14216445)
 * Status: not resolved