We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 972d0f5 commit f53141fCopy full SHA for f53141f
label_studio/core/settings/base.py
@@ -523,3 +523,5 @@ def collect_versions_dummy(**kwargs):
523
524
# Strip harmful content from SVG files by default
525
SVG_SECURITY_CLEANUP = get_bool_env('SVG_SECURITY_CLEANUP', False)
526
+
527
+ML_ALLOW_LOCAL_IP = get_bool_env('ML_ALLOW_LOCAL_IP', False)
label_studio/ml/serializers.py
@@ -9,7 +9,7 @@
9
10
class MLBackendSerializer(serializers.ModelSerializer):
11
def validate_url(self, value):
12
- if settings.SSRF_PROTECTION_ENABLED and url_is_local(value):
+ if settings.ML_ALLOW_LOCAL_IP and url_is_local(value):
13
raise MLModelLocalIPError
14
return value
15
0 commit comments