Private
Public Access
1
0

v1 using basic auth

This commit is contained in:
2024-11-26 08:37:36 +01:00
parent a8973b80b1
commit b94197a74b
4 changed files with 158 additions and 2 deletions

View File

@@ -4931,7 +4931,6 @@ def workout_upload_api(request):
post_data = {k: q.getlist(k) if len(
q.getlist(k)) > 1 else v for k, v in q.items()}
# only allow local host
hostt = request.get_host().split(':')
if hostt[0] not in ['localhost', '127.0.0.1', 'dev.rowsandall.com', 'rowsandall.com']: