Skip to content

Commit 5e5d2a0

Browse files
committed
cors out, test 1
1 parent 63d853b commit 5e5d2a0

File tree

5 files changed

+10
-23
lines changed

5 files changed

+10
-23
lines changed

backend/requirements/base.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ bioblend
1919
python-docx
2020
python-dateutil
2121
tblib
22-
django-cors-headers

backend/requirements/base.txt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SHA1:b3f75e8e13378b589410fc2e74170ae33695213a
1+
# SHA1:abfe81091e270a773df33afe444dc6048d44fa7b
22
#
33
# This file is autogenerated by pip-compile-multi
44
# To update, run:
@@ -10,9 +10,7 @@ aiohttp==3.9.0
1010
aiosignal==1.3.1
1111
# via aiohttp
1212
asgiref==3.7.2
13-
# via
14-
# django
15-
# django-cors-headers
13+
# via django
1614
async-timeout==4.0.3
1715
# via aiohttp
1816
attrs==23.1.0
@@ -43,7 +41,6 @@ django==4.2.7
4341
# -r backend/requirements/base.in
4442
# dj-database-url
4543
# django-authtools
46-
# django-cors-headers
4744
# django-extensions
4845
# django-import-export
4946
# django-linear-migrations
@@ -53,8 +50,6 @@ django-admin-list-filter-dropdown==1.0.3
5350
# via -r backend/requirements/base.in
5451
django-authtools @ git+https://github.com/adRn-s/django-authtools@dev_adRn
5552
# via -r backend/requirements/base.in
56-
django-cors-headers==4.3.1
57-
# via -r backend/requirements/base.in
5853
django-extensions==3.2.3
5954
# via -r backend/requirements/base.in
6055
django-import-export==3.3.3
@@ -71,7 +66,7 @@ drf-spectacular==0.26.5
7166
# via -r backend/requirements/base.in
7267
et-xmlfile==1.1.0
7368
# via openpyxl
74-
fonttools==4.44.3
69+
fonttools==4.45.0
7570
# via fpdf2
7671
fpdf2==2.7.6
7772
# via -r backend/requirements/base.in
@@ -184,7 +179,7 @@ xlwt==1.3.0
184179
# via
185180
# -r backend/requirements/base.in
186181
# tablib
187-
yarl==1.9.2
182+
yarl==1.9.3
188183
# via aiohttp
189184
zipp==3.17.0
190185
# via importlib-resources

backend/requirements/dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ptyprocess==0.7.0
5050
# via pexpect
5151
pure-eval==0.2.2
5252
# via stack-data
53-
pygments==2.17.1
53+
pygments==2.17.2
5454
# via
5555
# ipython
5656
# rich
@@ -68,7 +68,7 @@ traitlets==5.13.0
6868
# via
6969
# ipython
7070
# matplotlib-inline
71-
wcwidth==0.2.10
71+
wcwidth==0.2.12
7272
# via prompt-toolkit
7373
werkzeug==3.0.1
7474
# via -r backend/requirements/dev.in

backend/requirements/testing.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
-r dev.txt
99
coverage[toml]==7.3.2
1010
# via pytest-cov
11-
exceptiongroup==1.1.3
11+
exceptiongroup==1.2.0
1212
# via pytest
1313
execnet==2.0.2
1414
# via pytest-xdist
15-
greenlet==3.0.0
15+
greenlet==3.0.1
1616
# via playwright
1717
iniconfig==2.0.0
1818
# via pytest
19-
playwright==1.39.0
19+
playwright==1.40.0
2020
# via pytest-playwright
2121
pluggy==1.3.0
2222
# via pytest
@@ -37,7 +37,7 @@ pytest-django==4.7.0
3737
# via -r backend/requirements/testing.in
3838
pytest-playwright==0.4.3
3939
# via -r backend/requirements/testing.in
40-
pytest-xdist==3.4.0
40+
pytest-xdist==3.5.0
4141
# via -r backend/requirements/testing.in
4242
python-slugify==8.0.1
4343
# via pytest-playwright

backend/wui/settings/base.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,9 @@
7070
"stats",
7171
"metadata_exporter",
7272
"drf_spectacular",
73-
"corsheaders",
7473
]
7574

7675
MIDDLEWARE = [
77-
"corsheaders.middleware.CorsMiddleware",
7876
"django.middleware.common.CommonMiddleware",
7977
"django.middleware.security.SecurityMiddleware",
8078
"django.contrib.sessions.middleware.SessionMiddleware",
@@ -247,11 +245,6 @@
247245
# OTHER SETTINGS
248246
}
249247

250-
# CORS Configuration
251-
CORS_ALLOW_CREDENTIALS = True
252-
CORS_ALLOW_ALL_ORIGINS = False
253-
CORS_ALLOWED_ORIGINS = ["http://localhost:5173"]
254-
255248
# Use plain Python by default for shell_plus
256249
SHELL_PLUS = "plain"
257250

0 commit comments

Comments
 (0)