Since Stack Overflow is in HTTPS, I suppose a lot of snippets are not working anymore and returning a "Mixed Content" error.
I have this issue with one of my answers: Skipping null values with Morris.js.
The snippet is working with Firefox 56.0.1 but returns an error in Chrome 61.0.3163.100 and Edge 40.15063.674.0.
Chrome Error:
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.
Edge Error:
SEC7111: HTTPS security is compromised by [...]
The problem is that I can't find an HTTPS version of the library I use; an old release of Morris.js:
Morris.js version 0.4.3
So I tried, like suggested in SOCVR, to include directly a minified version of the script inside the snippet, but got blocked by the characters limitation:
Body is limited to 30000 characters; you entered 33592.
So my questions is:
- How can I make a working snippet with a library not available in HTTPS?
If there's no workaround currently, is there something scheduled to resolve this issue like:
- More libraries available for code snippets
- Upload libraries somewhere (with some kind of validation)
window.open
is not allowed in stack snippets - due to sandboxing I guess, but JS fiddle does allow it. So you'd need to use an alternative for a question aboutwindow.open
.