levitas111
levitas111

Reputation: 107

Sourcemap in jQuery 1.10.0 causes insecure content when loaded over HTTPS

i have a small problem by using HTTPS. By using SSL in my Rails-Application Chrome shows me the following error-message:

The page at 'https://www.thesitename.de/shop/counter/checkout/cart' was loaded over HTTPS, but displayed insecure content from 'http://www.thesitename.de/assets/jquery-1.10.0.min.map': this content should also be loaded over HTTPS.

Does that mean that the jquery-file is not loaded via HTTPS or that some requests in the jquery-script are over HTTP? In the sourcecode of the Site i don't see any HTTP-Javascript-includes. The jquery-File is local stored.

I hope this is enough information and someone can help me.

Thanks!

Upvotes: 2

Views: 1051

Answers (1)

Rob Baillie
Rob Baillie

Reputation: 3470

The file being requested forms the sourcemap for jQuery. This can be used by some browsers to help with debugging.

It's referenced in the download documentation here: http://jquery.com/download/

When looking at the problem elsewhere on stackoverflow I came across this: sourceMappingURL from jquery generates 404 error in apache

There may be useful info in there.

My advice would be to try the following:

  • Remove the line from your jQuery library (this means that you won't have access to the sourcemap when you're debugging - which may not be a problem for you)
  • Use a CDN to source your jQuery libraries instead - both jQuery and Google have ones.
  • Try downloading a local copy of jquery-1.10.0.min.map beside your version of the jQuery distribution.

Hopefully one of the above should resolve your issue.

Upvotes: 2

Related Questions