We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
复杂网络环境下(nginx+V2RAY桥接到树莓派localhost,页面使用nginx反代),默认配置会出现不明原因的浏览器忽略CSP默认参数问题。 需要在nginx的server{}中配置添加CSP头: `server { add_header Content-Security-Policy "default-src 'self' https://.googleapis.com/ 'unsafe-eval' 'unsafe-inline';script-src 'self' https://.googleapis.com/ 'unsafe-eval' 'unsafe-inline';img-src 'self';font-src 'self' https://fonts.gstatic.com/;"; #other locations location / { #此部分需要根据实际情况自行修改 }
} `
The text was updated successfully, but these errors were encountered:
No branches or pull requests
复杂网络环境下(nginx+V2RAY桥接到树莓派localhost,页面使用nginx反代),默认配置会出现不明原因的浏览器忽略CSP默认参数问题。
需要在nginx的server{}中配置添加CSP头:
`server {
add_header Content-Security-Policy "default-src 'self' https://.googleapis.com/ 'unsafe-eval' 'unsafe-inline';script-src 'self' https://.googleapis.com/ 'unsafe-eval' 'unsafe-inline';img-src 'self';font-src 'self' https://fonts.gstatic.com/;";
#other locations
location / {
#此部分需要根据实际情况自行修改
}
}
`
The text was updated successfully, but these errors were encountered: