By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,527 Members | 1,256 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,527 IT Pros & Developers. It's quick & easy.

What's cross domain.

dmjpro
100+
P: 2,476
Cross Domain, the web-applications across various machine or built in a same machine

Expand|Select|Wrap|Line Numbers
  1. <frame name="firstFrame" src="http://localhost:8084/Domain1/testpage"/>
  2. <frame name="firstFrame" src="http://localhost:8084/Domain2/testpage"/>
  3.  
here are two applications in same machine, so can it be considered as cross domains? Because from the domain1/testpage i can access the elements of domain2/testpage. So are these cross domain?
Jul 20 '09 #1
Share this Question
Share on Google+
4 Replies


Dormilich
Expert Mod 5K+
P: 8,639
isn't "localhost" the domain? IMO, domain1 and domain2 are just subdirectories.
Jul 20 '09 #2

dmjpro
100+
P: 2,476
@Dormilich
That means the machine should be different ??
Jul 20 '09 #3

acoder
Expert Mod 15k+
P: 16,027
See Same origin policy: http://localhost:8084/ is what you look at. They're both the same so it's the same domain.
Jul 20 '09 #4

Canabeez
100+
P: 126
If you need to test something crossdomain, you can always modify your hosts file, and point another domain like "localhost2" to the same place.. ;)
Jul 22 '09 #5

Post your reply

Sign in to post your reply or Sign up for a free account.