-1

Is there are ANY way to access IFRAME content across different domains ?

I am a trying to load external pages into an iframe and scrape their info. But get security errors in Chrome.

Filburt
  • 17,626
  • 12
  • 64
  • 115
David
  • 1,051
  • 5
  • 14
  • 28
  • 1
    This is only likely to be possible in the browser if the site you're trying to scrape specifically allows Cross-origin requests. You can do this on a server without a problem. –  Dec 08 '13 at 21:40
  • If you are using php on the server have php cURL enabled, you can fetch the contents of the other pages from a "local" script. I bet for other server side languages there are similar libraries. – Charlie Affumigato Dec 08 '13 at 22:09

1 Answers1

0

Since doing so would violate Cross Origin Resource Sharing and would, therefore, represent at a security vulnerability, the answer is not really.

If you're running your own server, you can use it as proxy.

Stephen Thomas
  • 13,843
  • 2
  • 32
  • 53