fix: add missing headers to login request from HAR analysis

This commit is contained in:
root 2026-03-29 21:58:13 +00:00
parent b7e38fd367
commit 6f60830af3
3 changed files with 7 additions and 3 deletions

View File

@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 16,
"id": "f28552f1-618c-4853-92e2-566554a2de2c",
"metadata": {},
"outputs": [
@ -12,7 +12,7 @@
"True"
]
},
"execution_count": 13,
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
@ -28,7 +28,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 17,
"id": "953d142e-a575-41b7-927d-8cd1546d2747",
"metadata": {},
"outputs": [

View File

@ -256,6 +256,10 @@ class KworkClient:
json=login_data,
headers={
"Accept": "application/json, text/plain, */*",
"Content-Type": "application/json",
"Origin": "https://kwork.ru",
"Referer": "https://kwork.ru/",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
"X-Requested-With": "XMLHttpRequest",
},
)