Spaces:
Sleeping
Sleeping
Commit
·
5a9cf99
1
Parent(s):
63944ba
cors headers
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,6 +28,8 @@ DEBUG = True
|
|
28 |
|
29 |
ALLOWED_HOSTS = ['*']
|
30 |
|
|
|
|
|
31 |
|
32 |
# Application definition
|
33 |
|
@@ -50,9 +52,11 @@ INSTALLED_APPS = [
|
|
50 |
'authentication',
|
51 |
'translations',
|
52 |
'formations',
|
|
|
53 |
]
|
54 |
|
55 |
MIDDLEWARE = [
|
|
|
56 |
'django.middleware.security.SecurityMiddleware',
|
57 |
'django.contrib.sessions.middleware.SessionMiddleware',
|
58 |
'django.middleware.common.CommonMiddleware',
|
|
|
28 |
|
29 |
ALLOWED_HOSTS = ['*']
|
30 |
|
31 |
+
CORS_ALLOW_ALL_ORIGINS = True
|
32 |
+
|
33 |
|
34 |
# Application definition
|
35 |
|
|
|
52 |
'authentication',
|
53 |
'translations',
|
54 |
'formations',
|
55 |
+
'corsheaders',
|
56 |
]
|
57 |
|
58 |
MIDDLEWARE = [
|
59 |
+
'corsheaders.middleware.CorsMiddleware',
|
60 |
'django.middleware.security.SecurityMiddleware',
|
61 |
'django.contrib.sessions.middleware.SessionMiddleware',
|
62 |
'django.middleware.common.CommonMiddleware',
|
requirements.txt
CHANGED
@@ -10,6 +10,7 @@ cryptography==41.0.3
|
|
10 |
Cython==3.0.8
|
11 |
defusedxml==0.7.1
|
12 |
Django==4.2.5
|
|
|
13 |
django-storages==1.14.1
|
14 |
django-templated-mail==1.1.1
|
15 |
djangorestframework==3.14.0
|
|
|
10 |
Cython==3.0.8
|
11 |
defusedxml==0.7.1
|
12 |
Django==4.2.5
|
13 |
+
django-cors-headers==4.3.1
|
14 |
django-storages==1.14.1
|
15 |
django-templated-mail==1.1.1
|
16 |
djangorestframework==3.14.0
|