Login to Azure health Data Services from React SPA

Das, Bipin 0 Reputation points
2023-11-23T06:29:52.89+00:00

I am able to use postman to get a token and access patient data. but from the React App, I am able to fetch the access token and attach it to the Authorization header but I get a 401 when I access the /Patient endpoint. I have created a Azure AD app registration (SPA) and given that app FHIR SMART, and Fhir Data Contributor roles in the FHIR service IAM.

Everything works in postman but not from the React SPA.

Azure Health Data Services
Azure Health Data Services
An Azure offering that provides a suite of purpose-built technologies for protected health information in the cloud.
149 questions
{count} votes