2026-01-15 20:35:46 +01:00
|
|
|
nelmio_security:
|
|
|
|
|
# Content Security Policy (CSP)
|
2026-01-15 20:38:30 +01:00
|
|
|
referrer_policy:
|
|
|
|
|
enabled: true
|
|
|
|
|
policies:
|
|
|
|
|
- 'strict-origin-when-cross-origin'
|
2026-01-30 17:58:12 +01:00
|
|
|
content_type:
|
|
|
|
|
nosniff: true
|
|
|
|
|
clickjacking:
|
|
|
|
|
paths:
|
|
|
|
|
'^/.*': DENY
|
2026-01-15 20:38:30 +01:00
|
|
|
permissions_policy:
|
|
|
|
|
enabled: true
|
|
|
|
|
policies:
|
|
|
|
|
camera: [self] # Correct : sans les guillemets simples internes
|
|
|
|
|
microphone: [self] # Correct
|
|
|
|
|
geolocation: [self] # Correct
|
|
|
|
|
fullscreen: [self] # Correct
|
|
|
|
|
payment: [self] # Correct
|
|
|
|
|
# Si tu veux bloquer une fonction pour tout le monde :
|
|
|
|
|
usb: []
|
2026-01-15 20:35:46 +01:00
|
|
|
csp:
|
2026-01-16 09:23:23 +01:00
|
|
|
hash:
|
|
|
|
|
algorithm: 'sha256'
|
2026-01-15 20:35:46 +01:00
|
|
|
enforce:
|
|
|
|
|
default-src: ["'self'"]
|
2026-01-30 17:58:12 +01:00
|
|
|
object-src: ["'none'"]
|
|
|
|
|
base-uri: ["'self'"]
|
2026-01-16 09:23:23 +01:00
|
|
|
worker-src: ["'self'"]
|
2026-01-15 20:35:46 +01:00
|
|
|
script-src:
|
|
|
|
|
- "'self'"
|
|
|
|
|
- "nonce"
|
2026-01-16 09:23:23 +01:00
|
|
|
- "'strict-dynamic'"
|
2026-01-15 20:35:46 +01:00
|
|
|
- "https://sentry.esy-web.dev"
|
|
|
|
|
- "https://chat.esy-web.dev"
|
|
|
|
|
- "https://auth.esy-web.dev"
|
|
|
|
|
- "https://static.cloudflareinsights.com"
|
2026-01-15 20:38:30 +01:00
|
|
|
- "https://challenges.cloudflare.com"
|
2026-01-15 20:35:46 +01:00
|
|
|
connect-src:
|
|
|
|
|
- "'self'"
|
|
|
|
|
- "https://sentry.esy-web.dev"
|
|
|
|
|
- "https://chat.esy-web.dev"
|
|
|
|
|
- "https://auth.esy-web.dev"
|
|
|
|
|
- "https://cloudflareinsights.com"
|
2026-01-15 20:38:30 +01:00
|
|
|
- "https://challenges.cloudflare.com"
|
2026-01-21 13:37:26 +01:00
|
|
|
- "https://tools-security.esy-web.dev"
|
2026-01-22 21:16:29 +01:00
|
|
|
- "https://checkout.stripe.com/"
|
2026-01-15 20:35:46 +01:00
|
|
|
frame-src:
|
|
|
|
|
- "'self'"
|
|
|
|
|
- "https://chat.esy-web.dev"
|
|
|
|
|
- "https://auth.esy-web.dev"
|
2026-01-15 20:38:30 +01:00
|
|
|
- "https://challenges.cloudflare.com"
|
2026-01-15 20:35:46 +01:00
|
|
|
style-src:
|
|
|
|
|
- "'self'"
|
|
|
|
|
- "'unsafe-inline'"
|
|
|
|
|
- "https://chat.esy-web.dev"
|
|
|
|
|
img-src:
|
|
|
|
|
- "'self'"
|
|
|
|
|
- "data:"
|
|
|
|
|
- "https://chat.esy-web.dev"
|
|
|
|
|
font-src:
|
|
|
|
|
- "'self'"
|
|
|
|
|
- "data:"
|
|
|
|
|
frame-ancestors: ["'none'"]
|
|
|
|
|
# Optionnel : forcer le passage en HTTPS
|
2026-01-30 17:58:12 +01:00
|
|
|
upgrade-insecure-requests: true
|
2026-01-16 09:23:23 +01:00
|
|
|
|