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

Function setCookie

github-actions/browserstack/set-browserstack-env.js:16811–16819  ·  view source on GitHub ↗
(headers, cookie)

Source from the content-addressed store, hash-verified

16809 validateCookieDomain(cookie.domain);
16810 out.push(`Domain=${cookie.domain}`);
16811 }
16812 if (cookie.path) {
16813 validateCookiePath(cookie.path);
16814 out.push(`Path=${cookie.path}`);
16815 }
16816 if (cookie.expires && cookie.expires.toString() !== "Invalid Date") {
16817 out.push(`Expires=${toIMFDate(cookie.expires)}`);
16818 }
16819 if (cookie.sameSite) {
16820 out.push(`SameSite=${cookie.sameSite}`);
16821 }
16822 for (const part of cookie.unparsed) {

Callers 1

deleteCookieFunction · 0.70

Calls 2

stringifyFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected