Lurker News

Comments (242) 68 threads

Show all comments

Showing thread 23 of 68

h43z1 reply#
Here a version that works for cross origin requests.


but website you are requesting has to embed the below script tag.

  just some other text


You would still set the DOM destination on the main page.

  dog
chatmasta#
Careful with that snippet, targetOrigin of * is dangerous. I could embed your iframed content on my own site and then you'd happily send me the entire HTML inside the iframe.