updated poc front end

This commit is contained in:
2023-11-30 17:26:15 -05:00
parent f840331e57
commit 095628567c
5 changed files with 43 additions and 6 deletions

Binary file not shown.

View File

@@ -25,6 +25,19 @@ SECRET_KEY = "django-insecure-^^r9o7z%c(x51odhohd_a5k7v%1gh@2-br!g_x450+27i_2h-n
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# SECURITY WARNING: update this when you have the production host
CORS_ALLOW_ALL_ORIGINS = True
CORS_ALLOW_METHODS = [
"DELETE",
"GET",
"OPTIONS",
"PATCH",
"POST",
"PUT",
]
ALLOWED_HOSTS = ["0.0.0.0" ,"localhost", "127.0.0.1"]
@@ -39,11 +52,13 @@ INSTALLED_APPS = [
"django.contrib.staticfiles",
"rest_framework",
"server",
"corsheaders",
]
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"corsheaders.middleware.CorsMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",