From ac9c0e6f5c776aa7441cb4cbfcb6aca3ce898318 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 16 Feb 2020 17:04:41 +0100 Subject: [PATCH] fixing --- rowers/views/workoutviews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rowers/views/workoutviews.py b/rowers/views/workoutviews.py index 2ac31c68..bb405313 100644 --- a/rowers/views/workoutviews.py +++ b/rowers/views/workoutviews.py @@ -4406,7 +4406,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']: + if hostt[0] not in ['localhost','127.0.0.1','dev.rowsandall.com','rowsandall.com']: message = {'status':'false','message':'permission denied for host '+hostt[0]} return JSONResponse(status=403,data=message)