473,408 Members | 2,813 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,408 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 1808
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.