V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
zuobinwang

绕过 X-Frame-Options 的 Chrome 扩展

  •  
  •   zuobinwang ·
    Dreamerryao · Apr 26, 2022 · 3088 views
    This topic created in 1465 days ago, the information mentioned may be changed or developed.

    最近科研的时候,要用到 iframe,发现各个网站基本上都禁止了跨域 iframe,自己写了一个本地绕过 X-Frame-Options 的扩展 https://github.com/Dreamerryao/x-frame-bypass

    4 replies    2022-04-28 01:14:31 +08:00
    hoythan
        1
    hoythan  
       Apr 26, 2022
    浏览器启动的时候带上参数 --disable-web-security 也可以.
    zuobinwang
        2
    zuobinwang  
    OP
       Apr 26, 2022
    @hoythan 学到了!
    reorx
        3
    reorx  
       Apr 27, 2022 via iPhone
    如果能绕过 SameSite=None cookie 不允许 http 就好了,之前遇到这个问题非常头疼
    zuobinwang
        4
    zuobinwang  
    OP
       Apr 28, 2022
    @reorx 其实本地绕过只是骗骗自己,没有多大作用,真正搞项目需要绕过的话得靠一些代理服务器来搞
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2751 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 14:19 · PVG 22:19 · LAX 07:19 · JFK 10:19
    ♥ Do have faith in what you're doing.