Skip to content

Cross Domain XHR with postMessage

A bit ago, I posted a little flow chart about the possibility of a Bookmarklet driven model for privledge escalation with XHR, the most important part was the postMessage based emulation of XHR, and for an offline Wave Reader that i’m working on, I needed it and created this.

In around 30 lines of code, I implemented a small subset of the XMLHttpRequest API using postMessage. While the better pmxdr project does the same thing, it uses a different API. I just implemented it with the normal XMLHTTPRequest API, which isn’t the ideal way anyway, but works. Notably, my code relies on json2.js unless you’re relying on Native JSON and DOM Level 3 window.addEventListener.

Posted in Google Wave.

One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. gratis sex says

    Talking about this stuff puts a smile on my face!

Some HTML is OK

or, reply to this post via trackback.