Skip to content

Commit

Permalink
Merge pull request #171 from fleizean/mpa
Browse files Browse the repository at this point in the history
csrf
  • Loading branch information
yeaktas authored Mar 9, 2024
2 parents 7479a26 + 1c50a85 commit ad72803
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion indianpong/indianpong/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = environ.get("DEBUG", default=True)

ALLOWED_HOSTS = ['indianpong.onrender.com']#environ.get("ALLOWED_HOSTS", default="").split(" ")
ALLOWED_HOSTS = ['indianpong.com','indianpong.onrender.com', 'http://127.0.0.1:8000', 'localhost', '127.0.0.1']#environ.get("ALLOWED_HOSTS", default="").split(" ")

CSRF_TRUSTED_ORIGINS = [
'https://indianpong.onrender.com',
'http://indianpong.onrender.com',
]

# Application definition

Expand Down

0 comments on commit ad72803

Please sign in to comment.