(str: string)
| 121 | // set CSP (content security policy) to grant permission to local files |
| 122 | // while blocking unexpected malicious network requests |
| 123 | const wrapInQuotes = (str: string) => `'${str}'` |
| 124 | const nonceString = nonces.map((nonce: string) => wrapInQuotes(`nonce-${nonce}`)).join(' ') |
| 125 | const hashString = hashes.map(wrapInQuotes).join(' ') |
| 126 |