fix: missing cors whitelist

This commit is contained in:
2024-06-20 18:15:34 +02:00
parent 991cdd0cf1
commit 955f3234b3
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -7,6 +7,11 @@ VERSION = "0.1.0"
CORS_ORIGIN_ALLOW_ALL = DEBUG
if not DEBUG:
import socket
ALLOWED_HOSTS.append(socket.gethostbyname(socket.gethostname()))
DJANGO_APPS = [
"unfold", # before django.contrib.admin
"django.contrib.admin",