middleman-gibberish icon indicating copy to clipboard operation
middleman-gibberish copied to clipboard

Mixed content error on https site.

Open yulolimum opened this issue 7 years ago • 3 comments

Since the resolution of issue #7 has not yet been published, I'm pointing directly to this repo. However, the logic behind determining usage of local vs external js assets is flawed. Particularly this: http://d.pr/i/Xv6QYM+

Should be easy fix but it seems like there is already some work that has been started to refactor that so I dont want to interfere. Just filing this for people having the same issue.

yulolimum avatar Sep 27 '17 05:09 yulolimum

I'm getting the same result; my page is deployed to HTTPS, and always renders out the external asset paths, despite my local assets being ostensibly available. Were you able to somehow hack around this logic, or is this extension just impossible to use on an HTTPS site?

billofrights avatar Jul 08 '19 22:07 billofrights

I had to clone the gem and change line 142 in lib/middleman-gibberish.rb, with a link to a jQuery lib served over https (in my case that was just jQuery CDN)

https://github.com/ahoward/middleman-gibberish/blob/b67eda861438811baf51d5517f6cbea4413e9774/lib/middleman-gibberish.rb#L142

marwann avatar Jul 08 '19 22:07 marwann

Aaaaaahhh, that makes sense — thank you!

billofrights avatar Jul 08 '19 22:07 billofrights