Private
Public Access
1
0

passing basic new tests

This commit is contained in:
2024-12-03 23:21:26 +01:00
parent 8d888fcd4d
commit 69b2fccac6
3 changed files with 76 additions and 14 deletions

View File

@@ -4934,7 +4934,7 @@ def workout_upload_api(request):
# only allow local host
hostt = request.get_host().split(':')
if hostt[0] not in ['localhost', '127.0.0.1', 'dev.rowsandall.com', 'rowsandall.com']:
if hostt[0] not in ['localhost', '127.0.0.1', 'dev.rowsandall.com', 'rowsandall.com','testserver']:
message = {'status': 'false',
'message': 'permission denied for host '+hostt[0]}
return JSONResponse(status=403, data=message)