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 } else if (attributeNameLowercase === "domain") {
16810 let cookieDomain = attributeValue;
16811 if (cookieDomain[0] === ".") {
16812 cookieDomain = cookieDomain.slice(1);
16813 }
16814 cookieDomain = cookieDomain.toLowerCase();
16815 cookieAttributeList.domain = cookieDomain;
16816 } else if (attributeNameLowercase === "path") {
16817 let cookiePath = "";
16818 if (attributeValue.length === 0 || attributeValue[0] !== "/") {
16819 cookiePath = "/";
16820 } else {
16821 cookiePath = attributeValue;
16822 }

Callers 1

deleteCookieFunction · 0.70

Calls 2

stringifyFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected