Skip to content

Commit

Permalink
CORS: POST to /accounts/token (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
esinx committed Sep 1, 2024
1 parent bcbab7e commit 50b23d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/Platform/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
"django.contrib.staticfiles",
"rest_framework",
"rest_framework_api_key",
"oauth2_provider",
"corsheaders",
"oauth2_provider",
"phonenumber_field",
"email_tools.apps.EmailToolsConfig",
"shortener.apps.ShortenerConfig",
Expand Down
2 changes: 1 addition & 1 deletion backend/Platform/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
# CORS settings
CORS_ALLOW_ALL_ORIGINS = True
CORS_ALLOW_METHODS = ["GET", "POST"]
CORS_URLS_REGEX = r"^/options/$"
CORS_URLS_REGEX = r"^(/options/)|(/accounts/token/)$"

# Email client settings
EMAIL_HOST = os.getenv("SMTP_HOST")
Expand Down

0 comments on commit 50b23d6

Please sign in to comment.