A partial archive of discourse.wicg.io as of Saturday February 24, 2024.

Post preview not working

dcreager
2018-06-28

The live preview isn’t working when editing a post.

Screenshot:

There’s a mixed content warning in the console:

_ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:9683 Mixed Content: The page at 'https://discourse.wicg.io/c/meta' was loaded over HTTPS, but requested an insecure script 'http://discourse.wicg.io/assets/markdown-it-bundle-44ce7be589dddfedfcc9dec272ffdde2a286729af050f016dfc7c8fd40290d06.js'. This request has been blocked; the content must be served over HTTPS.

which suggests that the problem is that force_https needs to be enabled.

jhpratt
2018-06-28

I haven’t had the preview available when creating posts/comments for quite a while. I just assumed it was a Firefox thing, but I’ve got a similar error.

dcreager
2018-06-28

Yes, good catch! I meant creating, as well.

yoavweiss
2018-08-20

Apologies for the delay.

The cause for this was mixed content which AFAICT are part of the Discourse distribution. I now fixed this for supporting browsers by setting the upgrade-insecure-requests header in the responses. According to MDN, this should fix the issue anywhere other than old IE.