REST API calls from teams tab to backend server

skander basly 20 Reputation points
2025-02-28T21:46:27.59+00:00

I'm currently developing a custom Teams tab app for Outlook using React and need to consume a REST API hosted on a server.

However, I'm encountering CORS (Cross-Origin Resource Sharing) issues when making GET or POST requests from my Teams app, as these requests are being blocked due to CORS restrictions associated with JavaScript.

Unfortunately, I cannot modify the CORS policies on the server side.

I'm looking for effective solutions or workarounds to enable successful API calls from my Teams app despite these limitations.

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,638 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.