Configuring the Content Security Policy? #926
-
Hi! Loving SingleFile. I use it in a few different ways. Primarily, I use it with ArchiveBox. The issue is that I am using a bookmarklet that loads an annotator from a separate internal domain. The files that the SingleFile binary used on ArchiveBox include the meta tag with a content-security-policy declaration that prevents this bookmarklet from loading. Is there a way to configure the meta tag declaration that defines the content-security-policy? Any configuration options or other method? I'd even be willing to setup a custom binary for it if needed -- though would appreciate if you could point me in the right direction. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I just added the option |
Beta Was this translation helpful? Give feedback.
I just added the option
--insert-meta-csp
. You have to set it tofalse
to ensure SingleFile won't add the<meta>
tag. However, I don't know if you can pass your own options to SingleFile in ArchiveBox.