web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
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.

(1) ShareShare
ReportReport
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

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans