Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
75
function
getCookie(name) {
76
const
r = document.cookie.match(
new
RegExp(
"\\b"
+ name +
"=([^;]*)\\b"
));
77
return
r ? r[1] : undefined;
78
}
79
80
let
xsrf = () => {
81
const
cached = getCookie(
"_mitmproxy_xsrf"
);
Callers
1
xsrf
Function · 0.85
Calls
1
match
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…