Skip to content

组件库文档中的 IFrame 示例没有正常工作 #8183

Closed

Description

@MaoTouZhu

Which class is this unit test associated with?

如题, IFrame 显示的是网页拒绝连接, 似乎文档主页也是这样的, 因为我尝试在我的练习项目中内联组件库网页也失败了, 如果是无法解决的问题也许或许给示例换一个目标.

Activity

  1. bb-auto commented on Jul 4, 2026

    @bb-auto

    @MaoTouZhu Thank you for submitting. We will give feedback later.

  2. added this to the v10.8.0 milestone on Jul 4, 2026
  3. MaoTouZhu commented on Jul 4, 2026

    @MaoTouZhu
    ContributorAuthor

    我曾尝试使用 html 的 iframe 标签内联组件库网页也失败了

  4. Tony-ST0754 commented on Jul 5, 2026

    @Tony-ST0754
    Collaborator

    这个讲起来涉及的Web知识面有点多了,你AI搜下HTTP响应头里面

    content-security-policy: frame-ancestors 'self'
    x-frame-options: SAMEORIGIN
    
  5. MaoTouZhu commented on Jul 5, 2026

    @MaoTouZhu
    ContributorAuthor

    这个讲起来涉及的Web知识面有点多了,你AI搜下HTTP响应头里面

    content-security-policy: frame-ancestors 'self'
    x-frame-options: SAMEORIGIN
    

    感谢, 我搜索学习了解了一下, 粗浅地理解为网站的拥有者可以配置决定网站是否允许被内联, 可能需要换一个内联目标或者修改网站配置之类的, 我试了两个网页都是可以.

  6. changed the title [-]chore(): 组件库文档中的 IFrame 示例没有正常工作[/-] [+]组件库文档中的 IFrame 示例没有正常工作[/+] on Jul 7, 2026
  7. added
    questionQuestion that needs to be answered
    and removed
    choreThis are tasks or bot action
    on Jul 7, 2026
  8. locked and limited conversation to collaborators on Jul 7, 2026
  9. converted this issue into a discussion #8189 on Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

questionQuestion that needs to be answered

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions