Grails 2.1.1 with the resources plugin.
I’m using the jstree library and it utilizes themes. You specify a theme name in the config:
"themes":{
"theme":"default",
"dots":false,
"icons":true
}
And the JavaScript finds it relative to the library’s path. That means the URL is built and is relative, then gets added to the document. For example, it might look like:
/a/js/jsTree/themes/default/styles.css
I have the following in my ApplicationResources.groovy:
tree {
resource url: '/js/jsTree/1.0/_lib/jquery.cookie.js'
resource url: '/js/jsTree/1.0/_lib/jquery.hotkeys.js'
resource url: '/js/jsTree/1.0/jquery.jstree.js'
}
When I deploy this on our server with SSL, on Firefox and Safari, I see the that styles.css being 302’d to the static path that the resources plugin does.
/a/static/js/jsTree/themes/default/styles.css
And then that new path is pulled in, and I can see it is coming over SSL. However, in Chrome I see the 302 and then the new URL is trying to stream over non-SSL and Chrome is blocking it (silently even) so the tree styles do not render at all, which obviously makes it unusable.
Sorry, but I cannot at this time make an example of this problem that anyone can publicly view. I’m hoping someone else might have ran into this situation before.
The issue ended up being something with jsTree. I changed the config to include the URL instead of letting jsTree figure it out: