Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Unanswered

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.

Posted on by 5

pastedimage1657032087722v1.png

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:

function searchSocieteByName(name) {
        return fetch(
          `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);
      });

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans