dslreports logo
site
 
    All Forums Hot Topics Gallery
spc

spacer




how-to block ads


Search Topic:
uniqs
1
share rss forum feed


JAAulde
Web Developer
Premium,MVM
join:2001-05-09
Williamsport, MD
kudos:3
reply to dlsauers

Re: JQuery - remote page code load

JavaScript, and therefore AJAX and jQuery, are limited to communication with the domain on which they're executed. This is a security precaution and cannot be overridden.

The only exception is JSONP, which requires cooperation on the part of the remote server.
--
The Yakabox | My Development Sandbox | LinkedIn Profile


cdru
Go Colts
Premium,MVM
join:2003-05-14
Fort Wayne, IN
kudos:7
said by JAAulde:

The only exception is JSONP, which requires cooperation on the part of the remote server.

Or Cross-origin resource sharing also allows it, but also requires some cooperation. The other alternatives is server side proxy or DNS alias.

There are limitations to all of the above, so there isn't one solution that fits all.