From a94fcb67d3c0654a40758c08c3944e46ff428073 Mon Sep 17 00:00:00 2001 From: dutruong1007 <42808678+w3webtool@users.noreply.github.com> Date: Sat, 30 Oct 2021 11:21:18 +0700 Subject: [PATCH] Update utils.js add headers['sec-fetch-site'] = 'same-origin'. header required --- utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils.js b/utils.js index 1c13685a..c53d0a4d 100644 --- a/utils.js +++ b/utils.js @@ -52,8 +52,11 @@ function get(url, jar, qs, options) { } function post(url, jar, form, options) { + let headers = getHeaders(url, options); + headers['sec-fetch-site'] = 'same-origin'; + var op = { - headers: getHeaders(url, options), + headers: headers, timeout: 60000, url: url, method: "POST",