Javascript as client in webapp sharepoint online backend

时光毁灭记忆、已成空白 提交于 2019-12-12 00:57:17

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!