Skip to content

Commit

Permalink
cors updation (#78)
Browse files Browse the repository at this point in the history
cors updation
  • Loading branch information
DhaaraniCIT authored Nov 8, 2023
1 parent 806291c commit 1f43f98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion centralized_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ python manage.py migrate
python manage.py createcachetable --database cache_db

# Running development server
gunicorn -c gunicorn_config.py sage_desktop_api.wsgi -b 0.0.0.0:8008
gunicorn -c gunicorn_config.py sage_desktop_api.wsgi -b 0.0.0.0:8010
4 changes: 4 additions & 0 deletions sage_desktop_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,7 @@
# https://docs.djangoproject.com/en/3.1/howto/static-files/

STATIC_URL = '/static/'

CORS_ORIGIN_ALLOW_ALL = True

CORS_ALLOW_HEADERS = ['sentry-trace', 'authorization', 'content-type']

0 comments on commit 1f43f98

Please sign in to comment.