Skip to content

Commit

Permalink
cors header fox for localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
marvellous10 committed May 11, 2024
1 parent a47cec3 commit 31cece4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@

CORS_ALLOWED_ORIGINS = [
'https://rectify-frontend.vercel.app',
'https://rectify-frontend.vercel.app/'
'https://rectify-frontend.vercel.app/',
'http://localhost:3000',
'http://localhost:3000/',
]


Expand Down Expand Up @@ -72,6 +74,7 @@


#Cache
'''
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.redis.RedisCache",
Expand All @@ -80,6 +83,7 @@
}
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
SESSION_CACHE_ALIAS = 'default'
'''

# Database
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases
Expand Down

0 comments on commit 31cece4

Please sign in to comment.