Spaces:
Sleeping
Sleeping
Commit
·
6b345d6
1
Parent(s):
9238c81
Update procom/settings.py
Browse files- procom/settings.py +8 -1
procom/settings.py
CHANGED
@@ -26,7 +26,12 @@ SECRET_KEY = "django-insecure-5p!s7ni0udj)mby7v$q)c3t=%6m7mkxl=%+__^u!ae+(h1+pcq
|
|
26 |
DEBUG = True
|
27 |
|
28 |
ALLOWED_HOSTS = ['localhost', '127.0.0.1','thejagstudio-procom.hf.space','productcompare.vercel.app']
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
# Application definition
|
32 |
|
@@ -37,6 +42,7 @@ INSTALLED_APPS = [
|
|
37 |
"django.contrib.sessions",
|
38 |
"django.contrib.messages",
|
39 |
"django.contrib.staticfiles",
|
|
|
40 |
"main",
|
41 |
"rest_framework",
|
42 |
"flipkart",
|
@@ -51,6 +57,7 @@ MIDDLEWARE = [
|
|
51 |
"django.contrib.auth.middleware.AuthenticationMiddleware",
|
52 |
"django.contrib.messages.middleware.MessageMiddleware",
|
53 |
"django.middleware.clickjacking.XFrameOptionsMiddleware",
|
|
|
54 |
]
|
55 |
|
56 |
ROOT_URLCONF = "procom.urls"
|
|
|
26 |
DEBUG = True
|
27 |
|
28 |
ALLOWED_HOSTS = ['localhost', '127.0.0.1','thejagstudio-procom.hf.space','productcompare.vercel.app']
|
29 |
+
CORS_ALLOWED_ORIGINS = [
|
30 |
+
'http://localhost:3000',
|
31 |
+
'http://127.0.0.1:3000',
|
32 |
+
'https://productcompare.vercel.app',
|
33 |
+
'https://thejagstudio-procom.hf.space',
|
34 |
+
]
|
35 |
|
36 |
# Application definition
|
37 |
|
|
|
42 |
"django.contrib.sessions",
|
43 |
"django.contrib.messages",
|
44 |
"django.contrib.staticfiles",
|
45 |
+
"corsheaders",
|
46 |
"main",
|
47 |
"rest_framework",
|
48 |
"flipkart",
|
|
|
57 |
"django.contrib.auth.middleware.AuthenticationMiddleware",
|
58 |
"django.contrib.messages.middleware.MessageMiddleware",
|
59 |
"django.middleware.clickjacking.XFrameOptionsMiddleware",
|
60 |
+
"corsheaders.middleware.CorsMiddleware",
|
61 |
]
|
62 |
|
63 |
ROOT_URLCONF = "procom.urls"
|