mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-22 14:29:36 +02:00
chore: Update CORS and CSRF settings for demo purposes
This commit is contained in:
parent
47436d43e0
commit
7bec359f26
1 changed files with 12 additions and 1 deletions
|
@ -188,6 +188,17 @@ SWAGGER_SETTINGS = {
|
||||||
|
|
||||||
|
|
||||||
# For demo purposes only. Use a white list in the real world.
|
# For demo purposes only. Use a white list in the real world.
|
||||||
CORS_ORIGIN_ALLOW_ALL = True
|
CORS_ORIGIN_ALLOW_ALL = False
|
||||||
|
|
||||||
|
CORS_ALLOWED_ORIGINS = [
|
||||||
|
'http://localhost:3000',
|
||||||
|
'http://adventurelog.app',
|
||||||
|
'https://api.adventurelog.app',
|
||||||
|
]
|
||||||
|
|
||||||
|
CSRF_TRUSTED_ORIGINS = [
|
||||||
|
'https://api.adventurelog.app',
|
||||||
|
'https://adventurelog.app',
|
||||||
|
]
|
||||||
|
|
||||||
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
|
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue