Skip to content

Commit

Permalink
Merge pull request #108 from seanmorley15/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
seanmorley15 authored Jul 10, 2024
2 parents ed14263 + ad90f03 commit 5f03e96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions backend/server/demo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,8 @@
CORS_ORIGIN_ALLOW_ALL = True


CSRF_TRUSTED_ORIGINS = [
# 'https://api.adventurelog.app',
# 'https://adventurelog.app',

]
from os import getenv

CSRF_TRUSTED_ORIGINS = getenv('CSRF_TRUSTED_ORIGINS', 'localhost').split(',')

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ services:
- DJANGO_ADMIN_PASSWORD=admin
- [email protected]
- PUBLIC_URL='http://127.0.0.1:81'
- CSRF_TRUSTED_ORIGINS=https://api.adventurelog.app,https://adventurelog.app
- DEBUG=False
ports:
- "8000:8000"
Expand Down

0 comments on commit 5f03e96

Please sign in to comment.