diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-03-17 20:04:41 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-03-17 20:04:41 +0800 |
| commit | 1f388391278dadf2cae977141a432aa2f39d8614 (patch) | |
| tree | 54e917ea52bf9c22d6232f0a583e92a0d160c2c5 /netlify-preview.js | |
| parent | fb9efc8930b705f019223f8dfa06bc129c5ae13d (diff) | |
| download | gohugo-theme-ed-1f388391278dadf2cae977141a432aa2f39d8614.tar.gz | |
Remove hypothesis for annotation support.
Diffstat (limited to 'netlify-preview.js')
| -rw-r--r-- | netlify-preview.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/netlify-preview.js b/netlify-preview.js index 5400d48..3b6a3a0 100644 --- a/netlify-preview.js +++ b/netlify-preview.js @@ -21,22 +21,22 @@ fs.readFile(path.resolve(__dirname, netlifyConfig), 'utf8', (err, data) => { // <- default-src 'self' blob:; line = line.replace(/(default-src) ('self')(;)/, '$1 $2 blob:$3'); - // -> style-src 'self' cdn.hypothes.is giscus.app; - // <- style-src 'self' 'unsafe-inline' cdn.hypothes.is giscus.app; - line = line.replace(/(style-src) ('self') (cdn\.hypothes\.is giscus\.app)(;)/, '$1 $2 $3 \'unsafe-inline\'$4'); + // -> style-src 'self' giscus.app; + // <- style-src 'self' 'unsafe-inline' giscus.app; + line = line.replace(/(style-src) ('self') (giscus\.app)(;)/, '$1 $2 $3 \'unsafe-inline\'$4'); // -> media-src 'self'; // <- media-src 'self' blob: https://app.netlify.com; line = line.replace(/(media-src) ('self')(;)/, '$1 $2 blob: https://app.netlify.com$3'); - // -> frame-src hypothes.is giscus.app; - // <- frame-src hypothes.is giscus.app app.netlify.com; - line = line.replace(/(frame-src) (hypothes\.is giscus\.app)(;)/, '$1 $2 app.netlify.com$3'); + // -> frame-src giscus.app; + // <- frame-src giscus.app app.netlify.com; + line = line.replace(/(frame-src) (giscus\.app)(;)/, '$1 $2 app.netlify.com$3'); - // -> script-src 'self' www.googletagmanager.com hypothes.is cdn.hypothes.is giscus.app; - // <- script-src 'self' www.googletagmanager.com hypothes.is cdn.hypothes.is giscus.app netlify-cdp-loader.netlify.app; + // -> script-src 'self' www.googletagmanager.com giscus.app; + // <- script-src 'self' www.googletagmanager.com giscus.app netlify-cdp-loader.netlify.app; line = line.replace( - /(script-src) ('self' www\.googletagmanager\.com hypothes\.is cdn\.hypothes\.is giscus\.app)(;)/, + /(script-src) ('self' www\.googletagmanager\.com giscus\.app)(;)/, '$1 $2 netlify-cdp-loader.netlify.app$3' ); |
