diff --git a/centralized_run.sh b/centralized_run.sh index 4b0bb649..4c1c8698 100644 --- a/centralized_run.sh +++ b/centralized_run.sh @@ -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 diff --git a/sage_desktop_api/settings.py b/sage_desktop_api/settings.py index 1e12e8a1..1e7e15ce 100644 --- a/sage_desktop_api/settings.py +++ b/sage_desktop_api/settings.py @@ -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']