Pierrrick Posted December 29, 2014 Share Posted December 29, 2014 I make a request ajax from to another domain , but I have this error : "XMLHttpRequest cannot load http://domain.cross.fr/img/f/297.svg. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://dev.otherdomain.fr:8080' is therefore not allowed access. " domain.cross.fr is a prestashop Website. How accept cross domain on prestashop 1.6 ? Thanks for your help Link to comment Share on other sites More sharing options...
Dh42 Posted December 29, 2014 Share Posted December 29, 2014 You have to allow it in the htaccess file. Read this, http://stackoverflow.com/questions/13421463/htaccess-access-control-allow-origin Link to comment Share on other sites More sharing options...
Pierrrick Posted December 29, 2014 Author Share Posted December 29, 2014 I add this : <IfModule mod_headers.c> Header set Access-Control-Allow-Origin: * </ifModule> in the htacess file on prestashop but it doesn't work. Link to comment Share on other sites More sharing options...
Recommended Posts