I'm just trying to create a very simple POC where I call to an FnO odata endpoint as a logged in user (not service to service, no secret involved) endpoint and return something.
I've followed the https://docs.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-react sample.
Now I'm trying to change the end point from the graph one to this
https://<myenv>.axcloud.dynamics.com/data/CustomersV3?$filter=CustomerAccount eq '1001'
works fine in the browser if I just enter it as a url, but I get CORS issues when trying to call it from the SPA, I suppose I expected that.
My app reg has all the correct permissions for dynamics erp, authentication, etc. per the sample, I've added it to the FnO env aad applications, I thought this was a little weird since adding and AAD app in FnO forces you to associate it with a user, I want to use the logged in user.
Anyone done this successfully before?