MCPcopy Create free account
hub / github.com/angular/dev-infra / deleteCookie

Function deleteCookie

github-actions/browserstack/set-browserstack-env.js:16790–16801  ·  view source on GitHub ↗
(headers, name, attributes)

Source from the content-addressed store, hash-verified

16788 validateCookieValue(cookie.value);
16789 const out = [`${cookie.name}=${cookie.value}`];
16790 if (cookie.name.startsWith("__Secure-")) {
16791 cookie.secure = true;
16792 }
16793 if (cookie.name.startsWith("__Host-")) {
16794 cookie.secure = true;
16795 cookie.domain = null;
16796 cookie.path = "/";
16797 }
16798 if (cookie.secure) {
16799 out.push("Secure");
16800 }
16801 if (cookie.httpOnly) {
16802 out.push("HttpOnly");
16803 }
16804 if (typeof cookie.maxAge === "number") {

Callers

nothing calls this directly

Calls 2

setCookieFunction · 0.70
__spreadValuesFunction · 0.70

Tested by

no test coverage detected