Fix CORS configuration for PWA offline caching
- Add CORS_ALLOWED_ORIGINS environment variable support in Django settings - Use environment variable in docker-compose.yml (no hardcoded domains) - Update .env.example with CORS configuration documentation - Add comprehensive PWA offline debugging guide SECURITY: Private domains should be set in local .env file, not in repo
This commit is contained in:
parent
0be38ca945
commit
9bdce32219
4 changed files with 411 additions and 1 deletions
|
|
@ -7,6 +7,11 @@ REDIS_HOST=soundwave-redis
|
|||
ES_URL=http://soundwave-es:9200
|
||||
TZ=UTC
|
||||
|
||||
# CORS Configuration - Add your custom domains here (comma-separated)
|
||||
# Default: http://localhost:8889,https://localhost:8889
|
||||
# Example with custom domain: http://localhost:8889,https://localhost:8889,https://yourdomain.com
|
||||
CORS_ALLOWED_ORIGINS=http://localhost:8889,https://localhost:8889
|
||||
|
||||
# Optional settings
|
||||
SW_AUTO_UPDATE_YTDLP=true
|
||||
DJANGO_DEBUG=false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue