Opened 6 years ago

Closed 3 years ago

#17409 closed defect (worksforme)

Dojo hosting on https CDN register module path wrongly

Reported by: aner Owned by: Rawld Gill
Priority: undecided Milestone: 1.11
Component: Loader Version: 1.6.2
Keywords: Cc:
Blocked By: Blocking:

Description

When there is a need to load dojo via https protocol, eg:

https://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/dojo.xd.js

dojo load correctly and works. However, dojox and digit modules URL paths are set with the http protocol. The paths are using the http protocol and not the https protocol.

dojo.registerModulePath("dojox","http://ajax.googleapis.com/ajax/libs/dojo/1.4.4/dojox")

This causes an issue when using dojox or digit in IE. IE doesn't like the http call coming from https page and pops a warning to the user.

The solution I found is setting djConfig to use https protocol.

modulePaths: {

"dojo": "https://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo", "dijit": "https://ajax.googleapis.com/ajax/libs/dojo/1.4/dijit", "dojox": "https://ajax.googleapis.com/ajax/libs/dojo/1.4/dojox"

}

However shouldn't the CDN paths of dojox, digit be set to https? (This issue is also true for 1.6 / 1.4 release)

Change History (2)

comment:1 Changed 6 years ago by bill

Component: GeneralLoader
Owner: set to Rawld Gill

Everything has changed with AMD support so I doubt this is still an issue. I'd suggest using the latest release.

comment:2 Changed 3 years ago by dylan

Milestone: tbd1.11
Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.