MDN self-hosted library · e01.org

Content-Security-Policy: upgrade-insecure-requests directive

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

html
<meta
  http-equiv="Content-Security-Policy"
  content="upgrade-insecure-requests" />
html
<img src="http://example.com/image.png" />
<img src="http://not-example.com/image.png" />
html
<img src="https://example.com/image.png" />
<img src="https://not-example.com/image.png" />
html
<a href="https://example.com/">Home</a>
<a href="http://not-example.com/">Home</a>