I'm trying to develop a web-app with Producteev APIs using PHP+jQuery.
As shown in the above image, the official documentation says that you have to handle the call to the given link.
Source > https://www.producteev.com/api/doc/#AuthenticationOAuth20Flows
So, using PHP and jQuery, I created an ajax request with type GET but the answer, when Producteev redirected the user to the correct Reditect URI, was
So I tried using dataType: jsonp
and crossDomain: true
as parameters in the ajax call, in my request as a solution, but as said in the documentation, the Producteev server answers a json.
I tried another solution, that's putting the code header("Access-Control-Allow-Origin: *");
in my PHP, at the top of the index.php page, but nothing changed.
Can someone help me figuring out a solution? Thanks a lot.