CORS error in reportsncu.office.com

Copper Contributor

I'm trying to use GraphAPI to fetch email data, however I'm running into this error:
Access to fetch at 'https://reportsncu.office.com/data/v1.0/download?token=X' (redirected from 'https://graph.microsoft.com/v1.0/reports/microsoft.graph.getEmailAppUsageUserCounts(period='D7')') from origin 'http://localhost:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Does anybody know a work around to get the data I'm looking for? 

0 Replies