对此的后续问题。我目前正在尝试设置一个 Web 应用程序以在 Intranet 站点上显示报告,使用 Intranet 登录对用户进行身份验证,将授权过程传递给 icCube。我正在尝试使用基本身份验证和本地安装的 icCube 使其与本地安装的 xampp apache 一起工作。我的脚本基于icCube 的现场演示。
当我使用空的 Cache & Cookies 启动我的 Web 应用程序时,该应用程序无法加载,给我带来了很多类似以下的错误: WebApp 错误
这些错误的原因是资源的 GET 请求是用代码 401 回答的,这是一个文本/html。这意味着我的 WebApp 无权从 icCube-server 获取 .css 和类似资源。
登录到我的 icCube 界面可以解决错误,因为这会授权我的浏览器会话从我的 icCube 服务器获取数据。
这个问题有什么解决方法吗?据我所知,资源 URI 是从 ic3root 和 ic3rootLocal 生成的,并传递给 html 页面上的 ic3Start 函数,这意味着我不能只将所有 .css 文件打包到我的 apache 文件夹中并链接它们。
是否可以根据用于获取我的报告选择(代理配置)的相同授权过程授权我的 WebApp 获取这些资源?