allow http

This commit is contained in:
Pete Matsyburka
2025-02-27 10:59:32 +02:00
parent 3a73398a1e
commit 7a72e2cbb7
+3 -1
View File
@@ -18,7 +18,9 @@ module SendWebhookRequest
end
if Docuseal.multitenant?
raise HttpsError, 'Only HTTPS is allowed.' if uri.scheme != 'https'
raise HttpsError, 'Only HTTPS is allowed.' if uri.scheme != 'https' &&
!AccountConfig.exists?(key: :allow_http,
account_id: webhook_url.account_id)
raise LocalhostError, "Can't send to localhost." if uri.host.in?(LOCALHOSTS)
end