• Hi,
    I need to use the plugin in a multidomain environment: admin and frontend run on different domains .
    When I try to search something I receive an error “No ‘Access-Control-Allow-Origin’ header is present on the requested resource.” on /wp-admin/admin-ajax.php?action=autocompleteCallback&term=bel.
    Is there a way to change the ajax call from JSON to JSONP?

    Thanks.

    https://www.ads-software.com/plugins/search-autocomplete/

Viewing 1 replies (of 1 total)
  • Plugin Author Gabe Shackle

    (@hereswhatidid)

    This is a bit beyond the scope of the plugin and stretches in to the server admin area. You should be able to enable cross domain access for your multisite if you have admin control over the server itself. It can be enabled via .htaccess:

    https://enable-cors.org/server_apache.html

    Be sure to only allow the cross domain access for specific URLs to avoid opening up any security holes in your site.

Viewing 1 replies (of 1 total)
  • The topic ‘Access-Control-Allow-Origin’ is closed to new replies.