Opened 14 years ago
Closed 14 years ago
#2579 closed defect (invalid)
Json problem. May be bug
Reported by: | Owned by: | anonymous | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | General | Version: | 0.4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Version 0.4 Browser: firefox - 1.5.0.9
I tried to use Json RPC service, when client and server had different domains. Let me explain: assume there are 2 domains Domain_A and Domain_B. Domain_A is a domain where dojo located and my webserver. Domain_B is another domain. I put javascript with src="Domain_A" to page located at "Domain_B". This javascript makes rpc calls using JsonService?. Every time the following error meassage appears: " Error: Could not load 'dojo.rpc.JsonService?'; last tried 'package.js' "
It happens only if Domain_A and Domain_B are different if they are same it works. I'm not sure may be this is not json problem may be it is something of other level. It seems that this is the problem of dojo.require Or may be it must not work on pages which located on different domains at all. Thank you
sounds like this violates the same domain principle