snapshot of https://github.com/marmelab/atomic-crm.git (main, 2026-09-18; blobs > 131072B omitted)
Some checks failed
✅ Check / 🔬 ESLint (push) Failing after 21s
✅ Check / 🏷️ Typecheck (push) Failing after 11s
✅ Check / 🔎 Test (push) Failing after 11s
✅ Check / e2e-test (push) Failing after 11s
✅ Check / 🔨 Build (push) Failing after 11s
🚀 Deploy / 🚀 Deploy (doc) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (demo) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (supabase) (push) Failing after 18s

This commit is contained in:
upstream-mirror
2026-09-18 01:48:50 +05:00
commit 93ecc1a6f8
787 changed files with 75240 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
---
paths:
- "**/*.tsx"
- "**/*.ts"
- "**/*.html"
---
# Web Security
## Required HTTP headers
Every production response must include:
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: camera=(), microphone=(), geolocation=()
## XSS prevention
Never inject unsanitized HTML.
Avoid innerHTML and dangerouslySetInnerHTML unless sanitized first.
Escape all dynamic template values.
When user-generated HTML is absolutely required, sanitize with a
vetted local sanitizer — never trust raw user input.
## Content Security Policy
Configure a production CSP. Use a per-request nonce for scripts
instead of unsafe-inline.
Content-Security-Policy:
default-src 'self';
script-src 'self' 'nonce-{RANDOM}';
style-src 'self' 'unsafe-inline';
img-src 'self' data: https:;
connect-src 'self';
frame-src 'none';
object-src 'none';
base-uri 'self';
Adjust origins to the actual project. Do not copy this block unchanged.
## Third-party scripts
Load asynchronously. Use SRI (Subresource Integrity) when serving
from a CDN. Audit third-party dependencies quarterly. Prefer
self-hosting for critical dependencies when practical.
## Forms
CSRF protection on all state-changing forms.
Rate limiting on all submission endpoints.
Validate both client-side and server-side — never rely on one alone.