diff options
Diffstat (limited to 'netlify-pr.go')
| -rw-r--r-- | netlify-pr.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/netlify-pr.go b/netlify-pr.go index f3e5057..58630fd 100644 --- a/netlify-pr.go +++ b/netlify-pr.go @@ -41,10 +41,10 @@ func main() { repStr = "${1} ${2} blob: https://app.netlify.com${3}" newStr = reStr.ReplaceAllString(newStr, repStr) - // -> frame-src 'none'; - // <- frame-src app.netlify.com; - reStr = regexp.MustCompile("(frame-src) ('none')(;)") - repStr = "${1} app.netlify.com${3}" + // -> frame-src hypothes.is; + // <- frame-src hypothes.is app.netlify.com; + reStr = regexp.MustCompile(`(frame-src) (hypothes\.is)(;)`) + repStr = "${1} ${2} app.netlify.com${3}" newStr = reStr.ReplaceAllString(newStr, repStr) // -> script-src 'self' www.googletagmanager.com hypothes.is cdn.hypothes.is; |
