问题
I have a colleague with a strange idea , (or maybe not so strange ? :) I need your help to determine ... He wants to use JavaScript in a Web client application (in this case EPiServer CMS) to handle (crud) all the documents in the backend ( SharePoint Online ) . The problem is , I can't find any way to get a reference to
SharePoint Online in from the JavaScript code (on aspx page on client). Is there a way ? And more important, is this really a good approach to document handling in this solution ? There must be better approaches ?
BR/Christer
回答1:
If I understand you correctly, you are trying to access SharePoint Online resources from a different domain. This is usually prohibited by SharePoint as Cross-Site-Scripting. You have to authenticate yourself to SharePoint before you can use any of it. If you can describe your intentions more clearly, it might help to post them on https://sharepoint.stackexchange.com/
来源:https://stackoverflow.com/questions/37300534/javascript-as-client-in-webapp-sharepoint-online-backend