ajax - HTTP status code 404 while retrieving the signin Events using Office 365 Graph API -


i trying retrieve sign info details using office 365 graph api passing token retrieve information.

i able response when hit url in fiddler -

"https://graph.windows.net/xxx.sharepoint.com/activities/signinevents?api-version=beta"

but failing when call using ajax following error

"xmlhttprequest cannot load https://graph.windows.net/xxx.sharepoint.com/activities/signinevents?api-version=beta. response preflight request doesn't pass access control check: no 'access-control-allow-origin' header present on requested resource. origin 'https://xxx.sharepoint.com' therefore not allowed access. response had http status code 404."

please me understand missing ?

you need utilize different library perhaps, please use,

azure-activedirectory-library-for-js

this answer highlighted @christoph above should point in right direction.

good luck!


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -