CSP规则已更新,现在的规则比之前更严格,并且修复了Youtube无法播放的问题。
default-src 'none';
base-uri 'self';
upgrade-insecure-requests;
script-src https://2047.one/js/ https://2047.one/highlight/ https://2047.one/cdn-cgi/;
style-src 'unsafe-inline' https://2047.one/css/ https://2047.one/highlight/;
connect-src 'self';
form-action 'self';
frame-ancestors 'none';
frame-src 'self' https://youtu.be https://www.youtu.be https://youtube.com https://www.youtube.com;
img-src 'self' https://telegra.ph https://www.telegra.ph https://web.archive.org https://i.imgur.com https://pbs.twimg.com https://i.ytimg.com https://upload.wikimedia.org;
manifest-src 'self';
media-src https://youtu.be https://www.youtu.be https://youtube.com https://www.youtube.com;
worker-src 'self';