-
such as <meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src https://*; child-src 'none';"> |
Beta Was 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: export default defineUserConfig<DefaultThemeOptions>({
head: [
[
'meta',
{
"http-equiv": 'Content-Security-Policy',
content: "default-src 'self'; img-src https://*; child-src 'none';",
},
],
]
...otherConfig
} |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
jiazengp
Sign up for free
to 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: