Ask a Question
Back to All

Specify domain module should be loaded from

For various reasons my application's javascript sits on a different domain to the Index.html

This causes me a problem as when using ocLazyLoad, the request for the module is made from the domain the index.html lives in.


index.html = https://a.domain.com/index.html

app.bundle.js = https://b.different-domain.com/js/bundle.js

lazyLoadedModule.js = https://a.domain.com/lazyLoadedModule.js (should be same domain as app.bundle.js)

Is there any way to specify that the get request for the lazy loaded module should be the same as where app.bundle.js lives?