Skip to content

Commit

Permalink
get frontend url from env
Browse files Browse the repository at this point in the history
  • Loading branch information
MrArsenic621 committed Oct 30, 2024
1 parent 4bbfe61 commit 3a37842
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@
# Cors setting
CSRF_USE_SESSIONS=True
CORS_ALLOW_CREDENTIALS = True
CORS_ALLOWED_ORIGINS = ["http://localhost"] # React app URL
CSRF_TRUSTED_ORIGINS = ['http://localhost']
CORS_ALLOWED_ORIGINS = [os.environ.get('FRONTEND_URL')] # React app URL
CSRF_TRUSTED_ORIGINS = [os.environ.get('FRONTEND_URL')]

FRONTEND_URL = 'http://localhost'
FRONTEND_URL = os.environ.get('FRONTEND_URL')

# JWT Settings
NINJA_JWT = {
Expand Down

0 comments on commit 3a37842

Please sign in to comment.