TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How does optimizely allow cross domain event listeners?

2 点作者 dennisvdvliet大约 12 年前
Does anybody knows how optimizely allows you to select items in their interface?<p>It looks like they include the page as an iframe and after that put some extra layer on top of it allowing you to select certain items.<p>I'm wondering how they do that, somebody has any clue?

1 comment

breck大约 12 年前
They iframe does not contain content from a 3rd party domain. They proxy content through their domain:<p><pre><code> &#60;iframe src="http://edit.optimizely.com/http://google.com?optimizely_compatibility=false&#38;amp;optimizely_disable=true&#38;amp;optimizely_load_script=https%3A%2F%2Fwww.optimizely.com%2Fjs%2Finnie-www-master-1092.366954744303823947.js&#38;amp;optimizely_log=false&#38;amp;optimizely_cache_buster=1367272480789"&#62;&#60;/iframe&#62;</code></pre>
评论 #5629179 未加载