I am trying to get user profile photo using https://graph.microsoft.com/v1.0/me/photos/240x240/$value
in an Angular applicaiton. I have done setup for redirection URI in azure portal. But I am getting CORS error.It says
Access to XMLHttpRequest at 'https://graph.microsoft.com/v1.0/me/photos/240x240/$value' from origin 'https://example.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.*
Where as same thing works from postman