Repository URL to install this package:
|
Version:
1.4.3 ▾
|
/**
* Get all of the pre-computed SHA hashes the <script> contents in this module.
*
* This is to be used when generating Content Security Policy script-src directives
* applied to the <meta> tags in the head of your document.
*
* Please note that:
*
* 1) If any of the <script> contents in this module ever change, then
* the script content's hash needs to be regenerated (you can use this tool: https://report-uri.com/home/hash).
*
* 2) You must only generate a hash based on the CONTENTS of the <script> tag (including whitespace,
* linebreaks, etc), meaning only the part that lives INSIDE the opening and closing <script> tags,
* and NOT the <script> tags themselves. So, for example, if you have this: `<script>var foo = 'bar';</script>`,
* then you only need to generate a hash for `var foo = 'bar';`.
*/
const scriptHashes = [
// The SHA256 hash from the GTM contents of the <script> tag in head.ejs
'sha256-NfSIUVIwX5neCArhuc6ZB43or+ZAL63rPFsBIM6o19g=',
];
module.exports = scriptHashes;