Top "Cross-domain" questions

Cross-domain refers to web applications that communicate outside of their hosting domain / web server.

When is it safe to enable CORS?

I am developing a JSON/REST web API, for which I specifically want third party websites to be able to …

ajax web-services security cross-domain cors
Running Google Analytics in iframe?

Our company runs a web site (oursite.com) with affiliate partners who send us traffic. In some cases, we set …

javascript iframe google-analytics cross-domain tracking
What's your favorite cross domain cookie sharing approach?

I see iframe/p3p trick is the most popular one around, but I personally don't like it because javascript + …

session cookies cross-domain sharing
PostMessage with multiple functions or custom callbacks

So far I've only seen tutorials for postmessage where one window sends a single kind of message, and the other …

javascript cross-domain postmessage
Access control for cross site requests in Internet Explorer

I am trying to make an AJAX call from several domains to a single one which will handle the request. …

javascript internet-explorer cross-domain access-control
Can I set a header with python's SimpleHTTPServer?

I'm using SimpleHTTPServer to test some webpages I'm working on. It works great, however I need to do some cross-domain …

python cross-domain simplehttpserver
postMessage still broken on IE11?

It seems that window.postMessage is still broken on IE 11 when the message is between a window and a child …

javascript internet-explorer cross-browser cross-domain postmessage
Spring Global CORS configuration not working but Controller level config does

I am trying to configure CORS globally via WebMvcConfigurerAdapter shown below. To test I am hitting my API endpoint via …

java spring-mvc http-headers cors cross-domain
using postmessage to refresh iframe's parent document

I have a greasemonkey script that opens an iframe containing a form from a different sub-domain as the parent page. …

iframe cross-domain parent
ajax post request is No 'Access-Control-Allow-Origin' header is present on the requested resource.'

I'm just making an ajax post request and I'm getting an error like: XMLHttpRequest cannot load https://xxx.com?redirect_…

jquery ajax cross-domain cross-domain-policy