From 0d867367f954aae3058a3c974e0c3b6eba795935 Mon Sep 17 00:00:00 2001 From: javad Date: Sun, 16 Aug 2026 17:06:45 +0330 Subject: [PATCH] ignore ssl https --- admin_panel/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin_panel/views.py b/admin_panel/views.py index 98674ea..9b1a3dd 100644 --- a/admin_panel/views.py +++ b/admin_panel/views.py @@ -2605,7 +2605,7 @@ async def run_cbi_sayad_inquiry_logic(sayad_id: str, max_retries: int = 7) -> st return json.dumps({"success": False, "data": None, "error": f"عدم اتصال به Lightpanda: {str(e)}"}) for attempt in range(1, max_retries + 1): - context = await browser.new_context() + context = await browser.new_context(ignore_https_errors=True, bypass_csp=True) page = await context.new_page() try: