0

Possible Duplicate:
Ways to circumvent the same-origin policy

I have url contain html.

http://s3test.sirahu.net/12518%3A11679%3A581?&AWSAccessKeyId=AKIAJEI7M6ZBESTUUDIA&Expires=1357973634&Signature=2G7M2uQJ%2Ba9LJUcGgEbxcItsBKQ%3D

I need to include and display this CDN HTML content in my web page. I have tried with ajax but I got cross domain issues and I have also tried with iframe also but url will download not display in an iframe.

Community
  • 1
  • 1
Muthukumar M
  • 1,138
  • 10
  • 19

2 Answers2

1

The server responds with Content-Disposition: attachment; filename="17893_content.html" (meaning "Download this, don't display it") and claims that the file is binary/octet-stream not text/html.

If you want a browser to render it, then the server must claim that it is HTML and not say that it should be downloaded.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
0

In JavaScript you can use postMessage method for crossdomain requests (https://developer.mozilla.org/en-US/docs/DOM/window.postMessage).

honzahommer
  • 839
  • 3
  • 10
  • 15