Post preview not working

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


There’s a mixed content warning in the console:

_ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:9683 Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure script ''. 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.

1 Like

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.

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

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.

1 Like