fix: missing cors whitelist
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user