Dojo - Issue loading widget cross-domain
===

I'm working on a project that requires that some custom Dojo widgets (i.e., widgets we have written ourselves) are loaded from another server.  Despite my best efforts over several days, I cannot seem to get Dojo to load the widgets.

Here is the setup regarding what code is on what servers:

Dojo: Google's CDN
Custom widgets: www.example.com
Website: www.foo.com

I cannot post the actual project files (this is a project for a company), but I have reproduced the error with smaller test files.

Test.html (on www.foo.com):

    <html>
    
    <div id="content"></div>
    
    <script>
    	var djConfig = {
    		isDebug: true,
    		modulePaths: {
    			'com.example': 'http://example.com/some/path/com.example'
    		}
    	}
    </script>
    
    <script src="https://ajax.googleapis.com/ajax/libs/dojo/1.4.3/dojo/dojo.xd.js.uncompressed.js"></script>
    
    <script type="text/javascript">
    	dojo.require("dijit._Widget");
    	dojo.require("dijit._Templated");
    	
    	dojo.addOnLoad(function() {
    		dojo.require("com.example.widget.Test", false);
    		
    		dojo.addOnLoad(function() {
    			new com.example.widget.Test().placeAt(dojo.byId('content'));
    		});
    	});
    </script>
    
    </html>

Test.xd.js (at www.example.com/some/path/com.example/widget/Test.xd.js):

    dojo.provide("com.example.widget.Test");
    
    dojo.require("dijit._Widget");
    dojo.require("dijit._Templated");
    
    dojo.declare("com.example.widget.Test", [dijit._Widget, dijit._Templated], {
        templateString: "<div dojoAttachPoint=\"div\">This is a test</div>",
        	
      	postCreate: function() {
       	    console.log("In postCreate");
       	    console.log(this.div);
       	    this.div.innerHTML += '!!!';
       	}
    });

In Firebug, I am seeing an error after a delay of a few seconds saying that the cross-domain resource com.example.widget.Test cannot be loaded.  However, in the 'Net' tab I am able to see that Test.xd.js is successfully downloaded, and I am able to set a breakpoint and see that the dojo.declare executes and completes without error.

I appreciate any help.  Please let me know if there is any other information I can provide.