freshyo/apps/backend/.wrangler/tmp/bundle-aek2Ls/strip-cf-connecting-ip-header.js
2026-03-27 18:47:12 +05:30

13 lines
351 B
JavaScript

function stripCfConnectingIPHeader(input, init) {
const request = new Request(input, init);
request.headers.delete("CF-Connecting-IP");
return request;
}
globalThis.fetch = new Proxy(globalThis.fetch, {
apply(target, thisArg, argArray) {
return Reflect.apply(target, thisArg, [
stripCfConnectingIPHeader.apply(null, argArray),
]);
},
});