Javascript 作为 webapp sharepoint 在线后端中的客户端 [英] Javascript as client in webapp sharepoint online backend

查看:47
本文介绍了Javascript 作为 webapp sharepoint 在线后端中的客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个同事有一个奇怪的想法,(或者也许不那么奇怪?:)我需要你的帮助来确定......他想在 Web 客户端应用程序(在本例中为 EPiServer CMS)中使用 JavaScript 来处理(crud) 后端 (SharePoint Online) 中的所有文档.问题是,我找不到任何方法来获得参考来自 JavaScript 代码的 SharePoint Online(在客户端的 aspx 页面上).有办法吗?更重要的是,在此解决方案中,这真的是处理文档的好方法吗?一定有更好的方法吗?
BR/克里斯特

解决方案

如果我理解正确,您正尝试从不同的域访问 SharePoint Online 资源.这通常被 SharePoint 禁止为跨站点脚本.您必须先向 SharePoint 进行身份验证,然后才能使用其中任何一项.如果您能更清楚地描述您的意图,将它们发布到 https://sharepoint.stackexchange.com/

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

解决方案

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/

这篇关于Javascript 作为 webapp sharepoint 在线后端中的客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆