-
such as <metahttp-equiv="Content-Security-Policy" content="default-src 'self'; img-src https://*; child-src 'none';"> |
BetaWas this translation helpful?Give feedback.
Answered by yzx9 Jun 29, 2021
Replies: 1 comment 4 replies
-
It’s easy to set it up yourself in user config, follow the config in the official document: We can config like this: exportdefaultdefineUserConfig<DefaultThemeOptions>({head: [['meta',{"http-equiv": 'Content-Security-Policy',content: "default-src 'self'; img-src https://*; child-src 'none';",},],]...otherConfig} |
BetaWas this translation helpful?Give feedback.
4 replies
Answer selected byjiazengp
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
It’s easy to set it up yourself in user config, follow the config in the official document:
https://github.com/vuepress/vuepress-next/blob/ca22d4fe7ade66571f34dc80343f4ec57483b44a/docs/.vuepress/config.ts#L8-L51
We can config like this: