Skip to content

Commit

Permalink
deployment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-bazad committed Jun 12, 2024
1 parent 31d7f84 commit 53b741f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

SECRET_KEY = os.environ('SECRET')
ALLOWED_HOSTS = [os.environ('WEBSITE_HOSTNAME')]
print(ALLOWED_HOSTS)
CSRF_TRUSTED_ORIGINS = ['https://' + os.environ('WEBSITE_HOSTNAME')]
DEBUG = False

Expand Down
2 changes: 2 additions & 0 deletions backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,7 @@
CORS_ALLOWED_ORIGINS = [
'http://127.0.0.1:5173',
'http://127.0.0.1:8000',
'https://ashish-bazad.github.io/abd-portfolio',
'https://ashish-bazad.github.io/abd-portfolio/',
]
CSRF_TRUSTED_ORIGINS = ['http://127.0.0.1:5173',]

0 comments on commit 53b741f

Please sign in to comment.