MCPcopy Create free account
hub / github.com/nodejs/node / makePolicyContainer

Function makePolicyContainer

deps/undici/src/lib/web/fetch/util.js:362–367  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

360
361// https://html.spec.whatwg.org/multipage/origin.html#policy-container
362function makePolicyContainer () {
363 // Note: the fetch spec doesn't make use of embedder policy or CSP list
364 return {
365 referrerPolicy: 'strict-origin-when-cross-origin'
366 }
367}
368
369// https://html.spec.whatwg.org/multipage/origin.html#clone-a-policy-container
370function clonePolicyContainer (policyContainer) {

Callers 2

fetchingFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected