Call Azure Function from SPFx React app deployed to Sharepoint Apps

dotnet_guy 15 Reputation points
2024-12-04T18:12:37.4866667+00:00

Hello,

We have SPFx app deployed to Sharepoint apps, being used as Teams app. We have to talk to an Azure function from the app, and we use function key, so I added that as part of the React ts, also added sharepoint URL in CORS but still see a 401. I was thinking to use managed identities, would that be possible to talk to a function from the deployed sharepoint app or is there a better way to authenticate to an Azure function?

Thanks.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,189 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,450 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,933 questions
0 comments No comments
{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.