diff --git a/backend/deployment.py b/backend/deployment.py index f889143..03b9e54 100644 --- a/backend/deployment.py +++ b/backend/deployment.py @@ -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 diff --git a/backend/settings.py b/backend/settings.py index 9b4008a..e49b8c4 100644 --- a/backend/settings.py +++ b/backend/settings.py @@ -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',] \ No newline at end of file