getScriptHashes() — astro Function Reference
Architecture documentation for the getScriptHashes() function in common.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 64388883_5e51_e12a_59e0_28a87188829f["getScriptHashes()"] 0f62fcfb_9504_86a2_16bb_d8a9742e1f23["common.ts"] 64388883_5e51_e12a_59e0_28a87188829f -->|defined in| 0f62fcfb_9504_86a2_16bb_d8a9742e1f23 style 64388883_5e51_e12a_59e0_28a87188829f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/csp/common.ts lines 25–31
export function getScriptHashes(csp: EnabledCsp): string[] {
if (csp === true) {
return [];
} else {
return csp.scriptDirective?.hashes ?? [];
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getScriptHashes() do?
getScriptHashes() is a function in the astro codebase, defined in packages/astro/src/core/csp/common.ts.
Where is getScriptHashes() defined?
getScriptHashes() is defined in packages/astro/src/core/csp/common.ts at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free