This repository has been archived by the owner on May 3, 2024. It is now read-only.
"type:cors, status: 200 ok" response from graph endpoint #33
Labels
question
Further information is requested
Please follow the issue template below. Failure to do so will result in a delay in answering your question.
Library
msal@2.x.x
or@azure/msal@2.x.x
Description
The loginpopup call works fine and I can log in and get a accesstoken that I have tested in postman, and the token works fine as well. My problem is that when I make a call to graph like described in this tutorial I get an cors response from graph.
![image](https://user-images.githubusercontent.com/60283283/141310686-f781c7b8-a436-4977-acb6-80e2f8e06ff9.png)
In the network tab the request is displayed as "200 OK"
But the object that is returned is of type "cors"
![image](https://user-images.githubusercontent.com/60283283/141311351-1faef98a-0f4d-45ee-a1b3-61ba1edebe6b.png)
I copied the function from this tutorial.
It is a SPA that I have registered in Azure AD like described here: https://docs.microsoft.com/en-us/graph/tutorials/javascript?tutorial-step=2
Maybe I have to do some more configuration to avoid the cors response??
The text was updated successfully, but these errors were encountered: