Content-Security-Policy

Defines a policy that controls which resources the browser is allowed to load for the page. One of the most powerful browser security mechanisms. Directives like `default-src`, `script-src`, `style-src`, `img-src`, and `connect-src` restrict where each type of resource can be loaded from, drastically reducing the impact of XSS attacks by preventing inline script execution and unauthorized resource loads. Start with a `Report-Only` mode (`Content-Security-Policy-Report-Only`) to audit violations before enforcing. A strict policy includes `'nonce-{random}'` or `'strict-dynamic'` for script sour…

Part of GalacticaSuite Cosmos — open the API client to test requests.