Skip to content

Commit

Permalink
add django-cors-headers
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Jul 9, 2024
1 parent 2344baa commit 1cb7933
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions backend/project/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"drf_spectacular",
"sorl.thumbnail",
"treebeard",
"corsheaders",
"project.api",
"project.observations",
"project.accounts",
Expand All @@ -68,6 +69,7 @@
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"corsheaders.middleware.CorsMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.middleware.locale.LocaleMiddleware",
Expand Down
3 changes: 2 additions & 1 deletion backend/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ gunicorn
drf-dynamic-fields
djangorestframework-simplejwt
django-treebeard
django-storages[s3]
django-storages[s3]
django-cors-headers
7 changes: 6 additions & 1 deletion backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
# pip-compile --strip-extras
#
asgiref==3.8.1
# via django
# via
# django
# django-cors-headers
attrs==23.2.0
# via
# jsonschema
Expand All @@ -21,12 +23,15 @@ certifi==2024.6.2
django==5.0.6
# via
# -r requirements.in
# django-cors-headers
# django-filter
# django-storages
# django-treebeard
# djangorestframework
# djangorestframework-simplejwt
# drf-spectacular
django-cors-headers==4.4.0
# via -r requirements.in
django-filter==24.2
# via -r requirements.in
django-storages==1.14.3
Expand Down

0 comments on commit 1cb7933

Please sign in to comment.