V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Renco
V2EX  ›  程序员

今天有 V 友遇到,网页 iframe 内嵌 powerBI 报错的问题吗。

  •  
  •   Renco · 148 天前 · 1276 次点击
    这是一个创建于 148 天前的主题,其中的信息可能已经有所发展或是发生改变。

    reportEmbed.min.a7c6…b29f00692e27c5.js:1 Uncaught ReferenceError: ClipboardItem is not defined 报错这个。去微软论坛查了下应该都有这个问题。

    https 访问的内嵌是正常的。但是 http 访问的都有问题。

    https://community.fabric.microsoft.com/t5/Developer/Uncaught-ReferenceError-ClipboardItem-is-not-defined/m-p/4659986/page/1

    4 条回复    2025-04-25 17:56:49 +08:00
    penzi
        1
    penzi  
       148 天前
    http 没有 clipboard 权限
    Renco
        2
    Renco  
    OP
       148 天前
    @maggch97 #1 之前一直是能访问的,已经内嵌了一年多了。不知道为什么突然 http 就不让用了,只能 https 。因为应用是本地部署的,所以没法通过改为 https 去做。很尴尬
    penzi
        3
    penzi  
       148 天前
    本地部署也能 https 啊。为什么不行。
    zhmouV2
        4
    zhmouV2  
       148 天前
    如果问题出在 ClipboardItem 要求安全上下文 https 的话 有个临时的解决方案,edge://flags/ 找到 Insecure origins treated as secure ,添加白名单就行
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   934 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:51 · PVG 06:51 · LAX 15:51 · JFK 18:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.