Cross domain loading of widget template
问题 I am hosting a widget on another domain than the site in which I am embedding the widget. The dashboard.js loads fine, but the HTML template gets, XMLHttpRequest cannot load http://192.168.2.72:8081/widgets/templates/dashboard.html. Origin http://192.168.2.72:8080 is not allowed by Access-Control-Allow-Origin. The url to the template is correct, so I can only assume this is a cross domain error. In the widget, the template is referred to like: templatePath: dojo.moduleUrl("monitor/dashboard",