From 799f0daa1e0ad32e47481906486172aaea563672 Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Thu, 11 Mar 2021 21:41:46 +0530 Subject: [PATCH] fix: Use https protocol for site URL --- erpnext/erpnext_integrations/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/erpnext_integrations/utils.py b/erpnext/erpnext_integrations/utils.py index 362f6cf88ee..bfda4b0ffc7 100644 --- a/erpnext/erpnext_integrations/utils.py +++ b/erpnext/erpnext_integrations/utils.py @@ -37,7 +37,7 @@ def get_webhook_address(connector_name, method, exclude_uri=False): try: url = frappe.request.url except RuntimeError: - url = "http://localhost:8000" + url = "https://localhost:8000" server_url = '{uri.scheme}://{uri.netloc}/api/method/{endpoint}'.format(uri=urlparse(url), endpoint=endpoint)