Merge branch 'release/v10.96'
This commit is contained in:
@@ -4407,7 +4407,7 @@ def workout_upload_api(request):
|
|||||||
# only allow local host
|
# only allow local host
|
||||||
hostt = request.get_host().split(':')
|
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']:
|
||||||
message = {'status':'false','message':'permission denied'}
|
message = {'status':'false','message':'permission denied for host '+hostt[0]}
|
||||||
return JSONResponse(status=403,data=message)
|
return JSONResponse(status=403,data=message)
|
||||||
|
|
||||||
# check credentials here
|
# check credentials here
|
||||||
|
|||||||
Reference in New Issue
Block a user