I created a custom assembly using the Dojo assembly tool, including all the modules I use. This works great. However, now that I have moved this assembly to the CDN, I get an access control error when I try to load the locale file:
XMLHttpRequest cannot load http://<CDN domain>/js/release/dojo/dojo/nls/custom-dojo_en-gb.js. Origin <site domain> is not allowed by Access-Control-Allow-Origin Uncaught Error: Could not load 'dojo.nls.custom-dojo_en-gb'; last tried './nls/custom-dojo_en-gb.js'
How can I make him download this file from the CDN domain? Or if this fails, can I add a cross-domain file so that it can be downloaded from the main domain?
source share