security: restreindre CORS_ORIGIN à une whitelist explicite
Remplace CORS_ORIGIN=true (toutes origines autorisées) par la valeur de production https://konstitisyon.nu dans .env.sample. Documente également la valeur de dev local (http://localhost:3000). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+5
-1
@@ -242,7 +242,11 @@ SESSION_COOKIE_NAME="directus_session_token"
|
||||
CORS_ENABLED=true
|
||||
|
||||
# Value for the Access-Control-Allow-Origin header. Use true to match the Origin header, or provide a domain or a CSV of domains for specific access [false]
|
||||
CORS_ORIGIN=true
|
||||
# NE PAS utiliser true en production — lister explicitement les origines autorisées
|
||||
# Dev local :
|
||||
# CORS_ORIGIN=http://localhost:3000
|
||||
# Production :
|
||||
CORS_ORIGIN=https://konstitisyon.nu
|
||||
|
||||
# Value for the Access-Control-Allow-Methods header [GET,POST,PATCH,DELETE]
|
||||
CORS_METHODS=GET,POST,PATCH,DELETE
|
||||
|
||||
Reference in New Issue
Block a user