473,395 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Same Origin Policy and domain aliases

Hello all,
Please forgive me if this is a simple question - I'm new. I'm using Javascript to create an XmlHttpRequest object to allow client pages to call PHP scripts on a server. IPs in the form www.myserver.com and http://11.111.111.11 work as expected but an alias in the form alias.myserver.com causes an http request made to the server to be denied with the error message "permission denied". I've tried passing the alias in the URL of the http request call, modifying the chmod values for the files and directories involved with no success. The alias appears to be correct in that I see the page I expect to see - http requests just won't work. Does anyone have any suggestions? Thanks!
May 15 '07 #1
3 1807
acoder
16,027 Expert Mod 8TB
Welcome to TSDN.

I can give you one possible suggestion. For the page that you are trying to access give the full address (including the http). See if that works.
May 16 '07 #2
Welcome to TSDN.

I can give you one possible suggestion. For the page that you are trying to access give the full address (including the http). See if that works.
I'm guessing you mean passing the full address in the url aparam of the XmlHttpRequest. I tried that, but it didn't work. After researching, my understanding is that javascript included in an html file is interpreted as being from the same domain as said html. The function that creates my XmlHttpRequest object is in a javascript file included in the html that is sent to the client. To my understanding this should negate any cross domain issues, but yet it doesn't seem to.
May 16 '07 #3
acoder
16,027 Expert Mod 8TB
Where is the javascript file located?
May 17 '07 #4

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

Similar topics

2
by: Randy Webb | last post by:
Is the HTTPRequest Object in IE limited to the Same Origin Policy when run from a webserver? <URL: http://www.hikksworld.com/HTTPRequestIE.html /> When run in IE, throws a "Permission Denied"...
2
by: GriffithsJ | last post by:
Hi When I run a test I get the error message: "Could not start the test. Provider load failure (0x80041013)" http://support.microsoft.com/?id=318849 appears to address the problem....
1
by: success_ny | last post by:
I cannot seem to find the answer to this rather simple question. Pardon me if it looks illogial or silly. Can I create a frame in the same page without referring to other html files? I.e., I...
4
by: Turko | last post by:
Hi all. I m searching for the equivalent of : try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); } catch (e) { alert("Permission UniversalXPConnect denied."); }
1
by: muskaran | last post by:
I am facing 'Cross Domain Security' within Frame.Its the 'Same Origin Policy ' issue. I have a frame which adjusts its height according to the height of the document.This works fine for all types...
7
by: funktacular | last post by:
Hi- I have script that works fine when I run it from a server, but I need to be able to load the page and have it work from my hard drive. However, it seems the when the url changes from...
2
by: Jeremy J Starcher | last post by:
On a web-forum I chat at, there are multiple lists of posts. The forum, hosted on multiple servers, allows us to upload graphics and Javascript to "skin" our particular forum. In addition, the...
2
by: jackchang1 | last post by:
I had a web page hosted in one domain. In IE6 it is able to request data from another page in a different domain using XMLHttpRequest object. It fails in IE7/Firefox/Safari. Can you confirm that...
0
by: praveenselvam636 | last post by:
hai! how can i apply a group policy which was created for the parent domain controller users to the child domain users.i am finding difficult to apply a parent domain group policy to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.