答案1
将此代码添加到 VirtualHost 文件解决了我的问题:
<IfModule mod_headers.c>
# Feature-Policy
Header set Feature-Policy "microphone 'none'"
# Referrer-Policy
Header set Referrer-Policy "same-origin"
# Content-Security-Policy
Header set Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval' https://jenkins.i4ware.fi; style-src 'self' 'unsafe-inline' https://jenkins.i4ware.fi;"
# X-XSS-Protection
Header set X-XSS-Protection "1; mode=block"
</IfModule>