mirror of
https://github.com/thecyberlearn/quantum-ai-v3.git
synced 2026-08-18 08:52:58 +00:00
Fix CSRF_TRUSTED_ORIGINS empty string error
Filter out empty strings from CSRF_TRUSTED_ORIGINS to prevent Django 4.0+ error 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
f7a495c776
commit
3c8a0e5ba1
@ -161,7 +161,7 @@ N8N_WEBHOOK_SOCIAL_ADS = config('N8N_WEBHOOK_SOCIAL_ADS', default='')
|
||||
OPENWEATHER_API_KEY = config('OPENWEATHER_API_KEY', default='')
|
||||
|
||||
# Security settings
|
||||
CSRF_TRUSTED_ORIGINS = config('CSRF_TRUSTED_ORIGINS', default='').split(',')
|
||||
CSRF_TRUSTED_ORIGINS = [origin.strip() for origin in config('CSRF_TRUSTED_ORIGINS', default='').split(',') if origin.strip()]
|
||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
|
||||
# Default primary key field type
|
||||
|
||||
Loading…
Reference in New Issue
Block a user