feat(api): add cors headers middleware (#2479)

This commit is contained in:
Jonas L 2023-03-23 15:40:30 +01:00 committed by GitHub
parent 1bf46b2de4
commit 7962c0adf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 0 deletions

View file

@ -25,9 +25,11 @@ INSTALLED_APPS = [
"rest_framework",
"django_filters",
"drf_spectacular",
"corsheaders",
]
MIDDLEWARE = [
"corsheaders.middleware.CorsMiddleware",
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",