Forums › Forums › Search & Filter Pro › XMLHttpRequest cannot load – message
- This topic has 6 replies, 2 voices, and was last updated 7 years, 6 months ago by Trevor.
-
Anonymous(Private) May 12, 2017 at 12:09 pm #108458
I’ve implemented Search & Filter pro on my website (which is still in early stage of development). When I test the functionality, the page refreshes but nothing happens on the frontend.
In the console I see the following message:
[Error] XMLHttpRequest cannot load http://changemycar.nl/zoeken?sf_data=form%2Cvc_results&sfid=809&sf_action=get_data&_sfm_prijs=0+1000&_sfm_Merk=Skoda&sfvc_page_id=803&sfvc_shortcode_id=1494583788363-fd34b16f-94e4-10&sfvc_style=all. Origin http://www.changemycar.nl is not allowed by Access-Control-Allow-Origin.Any clue how to fix this? Site is not https:// , the theme is The7 from DreamTheme (quite out of the box), I load the search form on the site via the Search & Filter Pro VC element.
Search form can be found on: http://www.changemycar.nl/zoeken
All help is highly appreciated 🙂
Trevor(Private) May 12, 2017 at 2:08 pm #108466I think this is a server setup issue. See this for information:
Where you might need to have this in the .htaccess file:
<IfModule mod_headers.c> Header set Access-Control-Allow-Origin http://www.changemycar.nl Header set Access-Control-Allow-Credentials true </IfModule>
Anonymous(Private) May 12, 2017 at 8:29 pm #108600Hi Trevor,
Thanks for your response, really appreciated!
I’ve tried to modify my .htaccess file, but without any result. Still getting the same error message. I’ve also tried to change the theme to the latest default WordPress theme, but that also did not do the trick :-/
Any other thoughts?
Thanks,
Joost -
AuthorPosts