Spaces:
Sleeping
Sleeping
Commit
·
ae7a4b0
1
Parent(s):
5a9cf99
corsheaders corrected
Browse files
lambdaAPI/__pycache__/settings.cpython-310.pyc
CHANGED
Binary files a/lambdaAPI/__pycache__/settings.cpython-310.pyc and b/lambdaAPI/__pycache__/settings.cpython-310.pyc differ
|
|
lambdaAPI/settings.py
CHANGED
@@ -28,8 +28,6 @@ DEBUG = True
|
|
28 |
|
29 |
ALLOWED_HOSTS = ['*']
|
30 |
|
31 |
-
CORS_ALLOW_ALL_ORIGINS = True
|
32 |
-
|
33 |
|
34 |
# Application definition
|
35 |
|
@@ -116,6 +114,12 @@ AUTH_PASSWORD_VALIDATORS = [
|
|
116 |
},
|
117 |
]
|
118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
|
120 |
# Internationalization
|
121 |
# https://docs.djangoproject.com/en/4.2/topics/i18n/
|
@@ -200,6 +204,8 @@ DJOSER = {
|
|
200 |
}
|
201 |
}
|
202 |
|
|
|
|
|
203 |
# AWS_ACCESS_KEY_ID = "AKIA6HV3LEA7AYSJHZTV"
|
204 |
# AWS_SECRET_ACCESS_KEY = "OceZlDrmsmbiurp5JokzhREfS/G+Z74EQ6GEVPd7"
|
205 |
# AWS_STORAGE_BUCKET_NAME = "deafapi"
|
|
|
28 |
|
29 |
ALLOWED_HOSTS = ['*']
|
30 |
|
|
|
|
|
31 |
|
32 |
# Application definition
|
33 |
|
|
|
114 |
},
|
115 |
]
|
116 |
|
117 |
+
CORS_ALLOWED_ORIGINS = [
|
118 |
+
"http://localhost",
|
119 |
+
"https://ferdinandpycode-lambda-hf.hf.space",
|
120 |
+
"http://127.0.0.1",
|
121 |
+
]
|
122 |
+
|
123 |
|
124 |
# Internationalization
|
125 |
# https://docs.djangoproject.com/en/4.2/topics/i18n/
|
|
|
204 |
}
|
205 |
}
|
206 |
|
207 |
+
|
208 |
+
|
209 |
# AWS_ACCESS_KEY_ID = "AKIA6HV3LEA7AYSJHZTV"
|
210 |
# AWS_SECRET_ACCESS_KEY = "OceZlDrmsmbiurp5JokzhREfS/G+Z74EQ6GEVPd7"
|
211 |
# AWS_STORAGE_BUCKET_NAME = "deafapi"
|