Opened 11 years ago
Closed 11 years ago
#11464 closed defect (fixed)
dojo.hash throws 'Permission denied'-exception in IE when used via Google CDN
Reported by: | Harold Vernooys | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | 1.6 |
Component: | Core | Version: | 1.4.3 |
Keywords: | hash cdn ie permission denied | Cc: | |
Blocked By: | Blocking: |
Description
These lines:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/dojo.xd.js.uncompressed.js"></script> <script type="text/javascript">dojo.require("dojo.hash");</script>
are enough to throw a 'Permission denied'-exception in IE, whereas with these lines:
<script type="text/javascript" src="dojo-release-1.4.3/dojo/dojo.js.uncompressed.js"></script> <script type="text/javascript">dojo.require("dojo.hash");</script>
everything works fine. I think it's because of the cross-domain iframe construction that's used in case of IE. In other browsers everything works as expected.
Change History (2)
comment:1 Changed 11 years ago by
Milestone: | → 1.6 |
---|---|
Priority: | high → normal |
severity: | major → normal |
comment:2 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
If you set djConfig.dojoBlankHtmlUrl = 'some/local/domain/path/to/blank.html', then it should work from the CDN. Save the dojo/resources/blank.html to your local domain and then refer to that path in the djConfig value.
I will commit a change that warns the developer to use the djConfig value for xdomain builds.