MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / getCookie

Function getCookie

web/src/js/utils.ts:75–78  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

73}
74
75function getCookie(name) {
76 const r = document.cookie.match(new RegExp("\\b" + name + "=([^;]*)\\b"));
77 return r ? r[1] : undefined;
78}
79
80let xsrf = () => {
81 const cached = getCookie("_mitmproxy_xsrf");

Callers 1

xsrfFunction · 0.85

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…