ruben06 Posted December 16, 2014 Share Posted December 16, 2014 Salut a tous, je viens d'activer le webservice de mon Prestashop (1.6), et mais j'ai un soucis pour accéder a la page générer par l'api avec la fonction getJson. Dans la console du navigateur, j'ai l'erreur " No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access. " J'ai essayer de rajouter dans le htaccess de prestashop la ligne Header set Access-Control-Allow-Origin "*" , sans succes... L'URL en question est www.pourquoilavie.org/api/products/?ws_key=XXXXXXXXX&io_format=JSON, et est parfaitement accessible depuis le navigateur. Merci de votre aide. Link to comment Share on other sites More sharing options...
ruben06 Posted December 17, 2014 Author Share Posted December 17, 2014 personne? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now