Spaces:
Build error
Build error
luanpoppe
commited on
Commit
·
3e4cc54
1
Parent(s):
d6a42c3
fix: adicionando allowed hosts e cors
Browse files- setup/settings.py +4 -2
setup/settings.py
CHANGED
@@ -30,7 +30,7 @@ SECRET_KEY = os.environ['SECRET_KEY']
|
|
30 |
# SECURITY WARNING: don't run with debug turned on in production!
|
31 |
DEBUG = True
|
32 |
|
33 |
-
ALLOWED_HOSTS = ["localhost", "127.0.0.1"]
|
34 |
|
35 |
|
36 |
# Application definition
|
@@ -148,7 +148,9 @@ STATIC_URL = "static/"
|
|
148 |
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|
149 |
|
150 |
CORS_ORIGIN_WHITELIST = [
|
151 |
-
"http://localhost"
|
|
|
|
|
152 |
# "http://localhost:5000",
|
153 |
# "https://luan-pessoal.vercel.app",
|
154 |
# "http://localhost:5173",
|
|
|
30 |
# SECURITY WARNING: don't run with debug turned on in production!
|
31 |
DEBUG = True
|
32 |
|
33 |
+
ALLOWED_HOSTS = ["localhost", "127.0.0.1", "luanpoppe-projeto-y-teste-01.hf.space", "*"]
|
34 |
|
35 |
|
36 |
# Application definition
|
|
|
148 |
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|
149 |
|
150 |
CORS_ORIGIN_WHITELIST = [
|
151 |
+
"http://localhost",
|
152 |
+
"luanpoppe-projeto-y-teste-01.hf.space",
|
153 |
+
"*"
|
154 |
# "http://localhost:5000",
|
155 |
# "https://luan-pessoal.vercel.app",
|
156 |
# "http://localhost:5173",
|