Skip to content

Commit

Permalink
Allow frontend to all api directly instead of going through next rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
mmihalik committed Dec 15, 2024
1 parent 6cd65a3 commit ee79905
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions webstrom/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.common.BrokenLinkEmailsMiddleware',
'allauth.account.middleware.AccountMiddleware',
]

Expand Down
7 changes: 6 additions & 1 deletion webstrom/settings_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
DEBUG = False

ALLOWED_HOSTS = [
"localhost",
"test.strom.sk",
]

APPEND_SLASH = False

CSRF_TRUSTED_ORIGINS = [
"https://test.strom.sk",
]
Expand Down Expand Up @@ -38,3 +39,7 @@
("Martin Mihálik", "[email protected]"),
("Peter Kovács", "[email protected]"),
]

MANAGERS = [
("Martin Mihálik", "[email protected]"),
]

0 comments on commit ee79905

Please sign in to comment.