Skip to content

Commit

Permalink
Fix admin panel CSRF error
Browse files Browse the repository at this point in the history
  • Loading branch information
gd-codes committed Dec 14, 2023
1 parent 9775d47 commit c7c20ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/web_main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

ALLOWED_HOSTS = ["stac.iitmandi.co.in", "127.0.0.1", "localhost"]

CSRF_TRUSTED_ORIGINS = ["http://localhost", "https://stac.iitmandi.co.in"]

# Application definition

INSTALLED_APPS = [
Expand Down

0 comments on commit c7c20ca

Please sign in to comment.