Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
多年来我一直在使用 Fancybox,但似乎有些网站阻止将其内容加载到 iframe 中,情况发生了变化。例如,google circles、linkedin、github .. 是一些不会加载到 fancybox(或 iframe)中的。
我想知道是否有人知道一种解决方法,或者一种在不使用 iframe 的情况下将灯箱用于外部 url 的方法。
您指的是:https ://developer.mozilla.org/en-US/docs/The_X-FRAME-OPTIONS_response_header站点使用它来防止劫持。
由于 javascript 的跨域安全性,不能只使用 JS。您需要使用一些服务器脚本。 加载外部网站的内容