Dependency Management Got Awesome
CommonJS and AMD Compliant dependency loader for modern web apps
Inject.setCrossDomain
0.4.x
OLD: This is an old version of documentation. You probably want the most recent version of this
document, from the sidebar on the right.
Inject.setCrossDomain({
relayFile: 'http://example.cdn.com/relay.html',
relaySwf: 'http://example.cdn.com/relay.swf'
});
When running Inject on multiple domains, you need to specify the path to an HTML and SWF file located on the remote server. These two files enable remote downloading in a CORS-like implementation, while still supporting older browsers. The two paths should be passed in as part of the object literal.