Forum Discussion

ankur745's avatar
ankur745
Copper Contributor
Oct 03, 2023

Geeting CORS in API while calling inside Teams APP TAB

Getting CORS in API while calling inside Teams APP TAB Calling API in Teams App TAB

const u = `${domain}/api/login.json`;

  fetch(u, requestOptions)
    .then(resp => {
  }

While calling API we are getting CORS

 

 

Despite receiving correct responses in the network tab, the app is receiving different responses, possibly due to the restricted Teams SDK..

 

 

 

 

    • ankur745's avatar
      ankur745
      Copper Contributor

      Prasad_Das-MSFT No, it's not helpful. I'm receiving data from my server API but Teams SDK not passed that data to me... in code getting type = CORS issue..looks like Teams SDK restricting data . I have attached two screenshots to my question.

      Is the team's app tab allowing to call 3rd Party API?

    • ankur745's avatar
      ankur745
      Copper Contributor
      Hey basically I want to call 3rd party API.. so how i can simply call API?

Resources