Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

$
0
0

Hello, I try to use javascript native to get an API response from societe.com but I should to use and activate the extension name's Moesif Cors to get Data. That is not good and proper for the client. I tried to add header to my function, with no-succes to get the result.  Could you help me? Here below my javascript code, I put just the function of the API:

functionsearchSocieteByName(name){
        returnfetch(
          `api.societe.com/.../search${name}&token=${SOCIETE_API_TOKEN}&format=json`
        )
          .then((response)=> response.json())
          .then((response)=> response.result);
      }
      then(function(responses){
        console.log(responses);
      });

Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images