I am trying to retrieve the Sign Info details using Office 365 graph API by passing Token to retrieve the information.
I am able to get response when i hit the url in fiddler -
"https://graph.windows.net/xxx.sharepoint.com/activities/signinEvents?api-version=beta"
But it is failing when i call using ajax with the following error
"XMLHttpRequest cannot load https://graph.windows.net/xxx.sharepoint.com/activities/signinEvents?api-version=beta. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://xxx.sharepoint.com' is therefore not allowed access. The response had HTTP status code 404."
Please help me understand what am I missing ?