Forum Discussion
ankur745
Oct 03, 2023Copper Contributor
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..
- Prasad_Das-MSFTMicrosoft
- ankur745Copper 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? - ankur745Copper ContributorHey basically I want to call 3rd party API.. so how i can simply call API?
- Prasad_Das-MSFTMicrosoft
ankur745 - We are checking this with engineering team. We will inform you once we hear anything from them. Thanks!