Codimd: Mixed content

Created on 7 May 2016  路  5Comments  路  Source: hackmdio/codimd

When using the image upload feature, the markdown is ![](http://i.imgur.com/xxxxxx.jpg) so the image is requested over http and not over https which give a mixed content warning in the browser.

I searched in the code but I don't see where it is.

All 5 comments

Oh, the image url is from imgur.
When you upload the image will send to hackmd server then transport to imgur, then imgur response the uploaded image url which is not starts with https.
I know this issue for a while, I'll look up some workarounds, thanks @Angristan !

here is the code if you would like to know:
https://github.com/hackmdio/hackmd/blob/master/app.js#L395

Oh that's what I feared :/ I don't know much of JS but maybe if you can only get that HTTPS URL, maybe you can transform it to HTTPS. Thanks for the answer :)

Yeah, because the imgur api response with non-https image url.
I will workaround it soon :smile:

Workaround in 3b5e74c9c4ac155a473f3284f0ca4180c834cabc

So fast :o

Was this page helpful?
0 / 5 - 0 ratings

Related issues

neopostmodern picture neopostmodern  路  4Comments

mxmilkiib picture mxmilkiib  路  3Comments

yaxu picture yaxu  路  4Comments

qiuwch picture qiuwch  路  3Comments

LukasKalbertodt picture LukasKalbertodt  路  4Comments