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
|
|
@ -24,7 +24,7 @@ services:
|
|||
- REDIS_HOST=soundwave-redis
|
||||
- TZ=UTC
|
||||
- ES_URL=http://soundwave-es:9200
|
||||
- CORS_ALLOWED_ORIGINS=http://localhost:8889,https://localhost:8889,https://sound.iulian.uk
|
||||
- CORS_ALLOWED_ORIGINS=${CORS_ALLOWED_ORIGINS:-http://localhost:8889,https://localhost:8889}
|
||||
depends_on:
|
||||
- soundwave-es
|
||||
- soundwave-redis
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue