Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

Use the O365 API with CORS

$
0
0

Hello everybody,

I'm stuck in the following scenario:

I want my website (not SharePoint App) to access Documents from SharePoint. This includes transactions like getting file informations and up- or downloading some documents. The special part about this: the communication should not be between the server and sharepoint, the communiction should be between the client and sharepoint, because I don't want to provide a proxy and route all the traffic through my server. So I tried to access the Office 365 Api with the suitable JavaScript API.

Surprise: it seem's like SharePoint isn't able to do Cross-Origin Resource Sharing (that's what the SharePoint respond is saying: "Status 403: Forbidden"). Same with the matching REST API. Just the C# API is working, but according to the top of this question: that won't help me, I need clientside communication.

Here's my question: Do anybody of you guys know a solution according to that problem? Is there another O365 API or a special trick to solve this problem?

Any hint would be helpful!

Thanks in advance


Viewing all articles
Browse latest Browse all 2257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>