How to use REST API from SharePoint Online via local HTML

2

Good afternoon,

I'd like to know how to use the Sharepoint Online REST API through external applications, specifically a local HTML with JS.

Using the example of this article link , I get the following error msg:

XMLHttpRequest can not load link . Response to preflight request does not pass access control check: In 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

Thank you.

    
asked by anonymous 04.08.2017 / 15:51

1 answer

1

You will be able to query SharePoint Online in this way using Microsoft Graph.

You can choose which platform to develop with Graph api.

GenerateanAppID

Andthenuseoneofthecommunity-availablecodesinGitHub

Next: Microsoft Graph Site Examples: Examples Query

    
16.02.2018 / 20:43