mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
allow http
This commit is contained in:
1 parent
3a73398a1e
commit
7a72e2cbb7
1 file changed
+3
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user