找文章 / 找答案
  • 发帖数4
  • 粉丝0

此人很懒,什么也没有留下

    精选问答 更多内容

    [管理与运维] 远程单点登录ifame嵌入跨域

    yhdata_CXEpQa3A玄铁三 显示全部楼层 发表于 2022-7-29 18:09:25 |阅读模式 打印 上一主题 下一主题
    1
    已解决
    我将bi前端用了nginx做了代理,并使用了证书。
    在另一个系统中用iframe嵌入页面。采用单点登录及回调方式。
    有的页面能正常嵌入并打开。有些页面不能打开。报跨域问题,有人遇到过么?求高手支招

    最佳答案

    永洪tech-Lerry 青铜一 关注Ta

    2022-07-29 18:09:26

    您参考一下附件中的文档的跨域解决方案,看有没有可以起到作用的?
    查看完整内容
    回复

    使用道具 举报

    精彩评论6

    永洪tech-Lerry青铜一 显示全部楼层 发表于 2022-7-29 18:09:26
    跨域.pdf (707.26 KB, 下载次数: 102)
    回复

    使用道具 举报

    yhdata_CXEpQa3A玄铁三 显示全部楼层 发表于 2022-7-30 09:06:51
    我的外部系统的域名是 https://report.test.com。报表是用了nginx 443端口代理了8080端口。是其中一部分可以。一部分报错。
    异常如下:
    DBContainer ERROR DOMException: Blocked a frame with origin "https://yonghong.test.com" from accessing a cross-origin frame.
        at s (https://yonghong.test.com/bi/?pr ... b801efd.js:1:553151)
        at c (https://yonghong.test.com/bi/?pr ... b801efd.js:1:553277)
        at t.value (https://yonghong.test.com/bi/?pr ... b801efd.js:1:551880)
        at t.value (https://yonghong.test.com/bi/?pr ... 5a76e940c.js:1:4710)
        at t.value (https://yonghong.test.com/bi/?pr ... 5a76e940c.js:1:3450)
        at vo (https://yonghong.test.com/bi/?pr ... 5f963d.js:1:1052965)
        at go (https://yonghong.test.com/bi/?pr ... 5f963d.js:1:1052760)
        at Xl (https://yonghong.test.com/bi/?pr ... 5f963d.js:1:1087095)
        at Hl (https://yonghong.test.com/bi/?pr ... 5f963d.js:1:1071489)
        at Bl (https://yonghong.test.com/bi/?pr ... 5f963d.js:1:1068516) {componentStack: '\n    in t\n    in Connect(t)\n    in n\n    in div\n  …t)\n    in div\n    in t\n    in Connect(t)\n    in a'}
    ?proc=2&isAir=false&platform=PC&action=loadPlugins&pluginName=YH-P-Nzk2OTgxOTQxNzk2OTk1:4 Uncaught (in promise) Error: Minified React error #200; visit https://reactjs.org/docs/error-decoder.html?invariant=200 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
        at render (?proc=2&isAir=false&platform=PC&action=loadPlugins&pluginName=YH-P-Nzk2OTgxOTQxNzk2OTk1:4:4646)
        at Object.render (?proc=2&isAir=false&platform=PC&action=loadPlugins&pluginName=YH-P-Nzk2OTgxOTQxNzk2OTk1:1:2644)
        at ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1:404747
        at ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1:25084
        at ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1:943294
        at Array.forEach (<anonymous>)
        at ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1:943272
    render @ ?proc=2&isAir=false&platform=PC&action=loadPlugins&pluginName=YH-P-Nzk2OTgxOTQxNzk2OTk1:4
    render @ ?proc=2&isAir=false&platform=PC&action=loadPlugins&pluginName=YH-P-Nzk2OTgxOTQxNzk2OTk1:1
    (匿名) @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    (匿名) @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    (匿名) @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    (匿名) @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    Promise.then(异步)
    o.onload @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    load(异步)
    t.loadScript @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    t.getPlugin @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    (匿名) @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    t.unstable_runWithPriority @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    ca @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    jl @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    Ml @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    (匿名) @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    t.unstable_runWithPriority @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    ca @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    ha @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    pa @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    Nl @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    enqueueForceUpdate @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    T.forceUpdate @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    (匿名) @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    requestAnimationFrame(异步)
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    (匿名) @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    t.unstable_runWithPriority @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    ca @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    jl @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    Ml @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    (匿名) @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    t.unstable_runWithPriority @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    ca @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    ha @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    pa @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    Nl @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    enqueueSetState @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    T.setState @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    a.onStateChange @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    g @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    r @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    requestAnimationFrame(异步)
    (匿名) @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    (匿名) @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    i @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    load(异步)
    t.send @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    t.openDBHandler @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    t.openCachedDB @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    r._renderDB @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    value @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    (匿名) @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    t.unstable_runWithPriority @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    ca @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    jl @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    Nl @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    is @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    os @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    (匿名) @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    Vl @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    ps @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    render @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/common.92a966dcb9983e5f963d.js:1
    (匿名) @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    l @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    n @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    (匿名) @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    (匿名) @ ?proc=2&locale=zh_CN&resource=/g5/h5/dist/js/ie/viewer.90e930075ed4fb801efd.js:1
    回复

    使用道具 举报

    永洪tech-mcs铂金二 显示全部楼层 发表于 2022-7-30 10:56:21
    您好,您的问题我们正在处理,请您耐心等待。
    回复

    使用道具 举报

    yhdata_CXEpQa3A玄铁三 显示全部楼层 发表于 2022-8-3 17:14:31
    永洪tech-mcs 发表于 2022-7-30 10:56
    您好,您的问题我们正在处理,请您耐心等待。

    请问下,什么时候能处理好呢?
    回复

    使用道具 举报

    朝花夕拾铂金一 显示全部楼层 发表于 2022-10-27 15:40:53
    请问下楼主问题解决了吗
    回复

    使用道具 举报

    yhdata_CXEpQa3A玄铁三 显示全部楼层 发表于 2023-4-13 17:41:41
    朝花夕拾 发表于 2022-10-27 15:40
    请问下楼主问题解决了吗

    没得
    回复

    使用道具 举报

    高级模式
    您需要登录后才可以回帖 登录 | 免费注册

    • 官方微信

      欢迎关注永洪服务号!收费为0,价值无限

      扫码关注
    • 新浪微博

      让每位用户轻松挖掘数据价值!

      访问新浪微博
    • 智能客服
    50W

    会员等你来哦

    Copyright   ©2012-2024  北京永洪商智科技有限公司  (京ICP备12050607) 京公网安备110110802011451号 |《永洪社区协议》
    返回顶部