RoastMyOpsec

Blog

Safety OPSEC guides

Defensive defaults that keep browsers, cookies, email, and TLS from doing attackers' homework. Ten guides per page.

Page 6 of 7

Safety · Dec 25, 2022

CSP img-src vs Mixed Content for Public Sites

CSP img-src vs mixed content for public sites is two different image problems. Mixed content is an HTTPS page that still loads http:// images, scripts, or styles — browsers may block or padlock-warn. img-src in…

Read guide →

Safety · Nov 3, 2022

CSP connect-src vs Public JavaScript API Keys

CSP connect-src vs public JavaScript API keys is a destination allowlist versus a credential in the browser. connect-src in Content-Security-Policy limits fetch, XHR, WebSocket, and EventSource URLs the page may open. A…

Read guide →

Safety · Oct 26, 2022

CSP child-src vs worker-src for Public Sites

CSP child-src vs worker-src for public sites is an old combined directive versus the split that replaced it. child-src used to cover nested browsing contexts (frames) and workers. Today, frame-src lists which hosts may…

Read guide →

Safety · Oct 17, 2022

CSP base-uri vs Open Redirects on Public Sites

CSP base-uri vs open redirects on public sites is two different ways URLs get rewritten. base-uri in Content-Security-Policy limits which origins may appear in a <base href> (and the fallback document URL). An injected…

Read guide →