From f40e1880d6ec45ac657fba0889f2bfb32d0aa4bd Mon Sep 17 00:00:00 2001 From: voldemort <5692900+yell0wsuit@users.noreply.github.com> Date: Tue, 22 Jul 2025 10:13:17 +0700 Subject: [PATCH] add logging for POST request interception in DRM handling --- src/inject.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/inject.js b/src/inject.js index 0793cd1..982c312 100644 --- a/src/inject.js +++ b/src/inject.js @@ -827,6 +827,7 @@ function handleDRMInterception(drmInfo, body, url, setBodyCallback, continueRequ const method = (config.method || "GET").toUpperCase(); if (method === "POST" && config.body) { + logWithPrefix("[FETCH] Intercepting POST request to:", resource); const drmInfo = detectDRMChallenge(config.body); const result = handleDRMInterception( @@ -860,6 +861,7 @@ function handleDRMInterception(drmInfo, body, url, setBodyCallback, continueRequ XMLHttpRequest.prototype.send = function (body) { if (this._method && this._method.toUpperCase() === "POST" && body) { + logWithPrefix("[XHR] Intercepting POST request to:", this._url); const drmInfo = detectDRMChallenge(body); const result = handleDRMInterception(