• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Access Denied while accessing files present on same machine!

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!


 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Eric!
 
reply
    Bookmark Topic Watch Topic
  • New Topic