diff --git a/cvat/apps/engine/mixins.py b/cvat/apps/engine/mixins.py index 3e48bf85327..3349812effa 100644 --- a/cvat/apps/engine/mixins.py +++ b/cvat/apps/engine/mixins.py @@ -300,7 +300,7 @@ def init_tus_upload(self, request): tus_file = TusFile.create_file(metadata, file_size, self.get_upload_dir()) location = request.build_absolute_uri() - if 'HTTP_X_FORWARDED_HOST' not in request.META: + if 'HTTP_ORIGIN' in request.META: location = request.META.get('HTTP_ORIGIN') + request.META.get('PATH_INFO') if import_type in ('backup', 'annotations', 'datasets'):