TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How does optimizely allow cross domain event listeners?

2 pointsby dennisvdvlietabout 12 years ago
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

breckabout 12 years ago
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 未加载