Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access Denied while accessing files present on same machine!

 
Vinod Borole
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I usually run my application using this URL http://abc.mydomain.com/testApplication i.e using host name, if i have to run using IP, i use this URL http://10.0.0.1/testApplication. However when i use IP address, and try to access an html file whose location comes from the database as "http://abc.mydomain.com/testApplication/resource/test.html" . Javascript throws "Access Denied" error, which is not the case if i access my application using hostname. It looks like it is not able to resolve the hostname to IP address. Is this a cross domain issue? Do i have any workaround in case i want to make this work?

Thanks!


 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The domain has to match, you can not mix ip address and hostname.

Eric
 
Vinod Borole
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Eric!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic