MDN self-hosted library · e01.org

Server Side Request Forgery (SSRF)

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

js
fetch("https://example.org/fetch-image?url=http://localhost:443/admin/org.png");
js
fetch("https://example.org/fetch-image?url=file:///etc/passwd");
js
fetch("https://example.org/fetch-image?url=https://evilexample.org/redirect");
js
const ALLOWED_DOMAINS = ["https://api.example.com", "https://cdn.example.com"];