BuBulle88 Posted June 28, 2021 Share Posted June 28, 2021 (edited) Bonjour, Je n'arrive pas à récupérer les données de prestashop. J'ai une erreur CORS et impossible de la contourné. J'ai essayé de récupérer les données en question sans succès. Le code : $.ajax({ method: "GET", url: "https://www.mondomaine.fr/api/customers/?output_format=JSON", dataType: "json", username: key, password: "", dataType: 'json', headers : { 'Access-Control-Allow-Origin' : '*' }, success: function(data, textStatus, jqXHR) { console.log("let's gooo"); } }); Merci Edited June 28, 2021 by BuBulle88 (see edit history) Link to comment Share on other sites More sharing options...
doekia Posted June 28, 2021 Share Posted June 28, 2021 c'est pas l'appelé qui spécifie la sécurité cross domaine le concernant, mais l'appelant! Sinon où serait la sécurité? 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