Fix MITM
This commit is contained in:
1 parent
07d4cdfa7e
commit
f2306e6962
4 files changed
+77
-36
No files matched your search
@@ -140,7 +140,6 @@ async function passthrough(req, res, bodyBuffer) {
|
||||
async function intercept(req, res, bodyBuffer, mappedModel) {
|
||||
try {
|
||||
const body = JSON.parse(bodyBuffer.toString());
|
||||
console.log("🚀 ~ intercept ~ body:", body)
|
||||
body.model = mappedModel;
|
||||
|
||||
const response = await fetch(ROUTER_URL, {
|
||||
|
||||
Reference in new issue
Block a user