T
totalstranger
Using an AJAX Javascript function that works fine if it's in the primary
domain www.arnb.org, but suffers from a security error when attempted
from a subdomain, thepatsyreport.arnb.org
In the subdomain HTML I have a base statement, and set document.domain
to 'arnb.org' with Javascript
<base href="http://www.arnb.org" />
Anyone know how to get around this issue or tell me what I'm doing that
is wrong?
Name of test page:
http://thepatsyreport.arnb.org/indexx.php
The error can be created by clicking on the find icon after a band name.
(Looks like a magnifying glass)
Errors from Firefox console.(original directory name changed to
xxxxxxxxxx) As expected this also fails in IE7, Safari, and Opera
Security Error: Content at http://thepatsyreport.arnb.org/indexx.php may
not load data from
http://www.arnb.org/xxxxxxxxxx/External4.php?B=144&Pfx=&UTF8&1219330078689.
Error: uncaught exception: [Exception... "Access to restricted URI
denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)"
location: "http://www.arnb.org/xxxxxxxxxx/External.js Line: 35"]
Thank you
Arn
domain www.arnb.org, but suffers from a security error when attempted
from a subdomain, thepatsyreport.arnb.org
In the subdomain HTML I have a base statement, and set document.domain
to 'arnb.org' with Javascript
<base href="http://www.arnb.org" />
Anyone know how to get around this issue or tell me what I'm doing that
is wrong?
Name of test page:
http://thepatsyreport.arnb.org/indexx.php
The error can be created by clicking on the find icon after a band name.
(Looks like a magnifying glass)
Errors from Firefox console.(original directory name changed to
xxxxxxxxxx) As expected this also fails in IE7, Safari, and Opera
Security Error: Content at http://thepatsyreport.arnb.org/indexx.php may
not load data from
http://www.arnb.org/xxxxxxxxxx/External4.php?B=144&Pfx=&UTF8&1219330078689.
Error: uncaught exception: [Exception... "Access to restricted URI
denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)"
location: "http://www.arnb.org/xxxxxxxxxx/External.js Line: 35"]
Thank you
Arn