您能否添加一个 Feature-Policy?
这是我使用了一年多的配置。(主机为 nginx)
add_header Feature-Policy “geolocation ‘none’; midi ‘none’; notifications ‘self’; push ‘none’; sync-xhr ‘none’; microphone ‘none’; camera ‘none’; magnetometer ‘none’; gyroscope ‘none’; speaker ‘none’; vibrate ‘none’; fullscreen ‘none’; payment ‘none’;”;
将以下内容添加到 Content-Security-Policy 头中是否有意义?这是我目前成功使用的配置(由主机 nginx 添加,在 Discourse 内置的 CSP 之上):
default-src 'none'
style-src 'self' domain 'unsafe-inline'
img-src https://*.domain.org data: blob: 'unsafe-inline'
font-src 'self' domain
connect-src 'self' domain
manifest-src 'self' domain