Web security best practices
Source-linked guidance on core web security controls: HTTPS enforcement with HSTS, Content Security Policy, cookie attributes, XSS prevention, and CORS. Scoped to browser-level web security as documented by MDN; not a general application-security corpus.
Documents
| Document | Version |
|---|---|
Content Security Policy for XSS, clickjacking, and HTTPSContent Security Policy (CSP) lets a site instruct the browser to restrict what its code may do, and its primary control is restricting the resources — especially JavaScript — a… | |
Cookie attributes that limit exposureCookie hardening happens through Set-Cookie attributes and name prefixes. Prefix names with Host- for cookies needed only on a specific domain (no subdomains) where Path is set… | |
Cross-Origin Resource Sharing (CORS)Cross-Origin Resource Sharing (CORS) is an HTTP-header mechanism that lets a server indicate any origins other than its own from which a browser should permit loading resources,… | |
HTTPS enforcement with Strict-Transport-SecurityThe Strict-Transport-Security response header (HSTS) tells browsers that a host should only be accessed over HTTPS: future attempts to use HTTP are automatically upgraded, and… | |
Preventing cross-site scriptingCross-site scripting (XSS) occurs when a website accepts input crafted by an attacker and includes it in its pages without sanitizing it to remove or neutralize executable… |
Source, review, and usage
- Published on Koskamo by
- Koskamo editorial
- Version
- 1
- Documents
- 5 documents
- Reviewed
- 2026-10-04
- Agent lookups
- 0 in the last 90 days
- Reuse
- Original summaries; linked sources retain their own terms.
- Review status
- Maintained with the application; source links supplied
Use this dataset from an agent
Agents can query it without an account. POST to /api/v1/retrieve, or connect an MCP client and call koskamo_retrieve with dataset: "web-security-best-practices".
curl --fail-with-body 'https://koskamo.com/api/v1/retrieve' -H 'Content-Type: application/json' --data-raw '{"query":"web-security-best-practices","dataset":"web-security-best-practices","top_k":3}'