generated from vignesh/searchengine
feat: add Django configuration settings with database, CORS, and Cashfree gateway support
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 36s
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 36s
This commit is contained in:
parent
852aa0ad33
commit
6c78e149a6
1 changed files with 8 additions and 0 deletions
|
|
@ -30,10 +30,18 @@ import os
|
||||||
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', '*').split(',') if os.environ.get('ALLOWED_HOSTS') else ['*']
|
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', '*').split(',') if os.environ.get('ALLOWED_HOSTS') else ['*']
|
||||||
|
|
||||||
CORS_ALLOW_ALL_ORIGINS = True
|
CORS_ALLOW_ALL_ORIGINS = True
|
||||||
|
CORS_ALLOW_CREDENTIALS = True
|
||||||
CSRF_TRUSTED_ORIGINS = [
|
CSRF_TRUSTED_ORIGINS = [
|
||||||
'https://betapayments.tradhox.com',
|
'https://betapayments.tradhox.com',
|
||||||
|
'https://beta.tradhox.com',
|
||||||
|
'https://tradhox.com',
|
||||||
|
'https://www.tradhox.com',
|
||||||
'http://localhost',
|
'http://localhost',
|
||||||
|
'http://localhost:5173',
|
||||||
|
'http://localhost:3000',
|
||||||
'http://127.0.0.1',
|
'http://127.0.0.1',
|
||||||
|
'http://127.0.0.1:5173',
|
||||||
|
'http://127.0.0.1:3000',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue