Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
ErrorDocument 404 /404.html

<IfModule mod_headers.c>
Header set Content-Security-Policy "frame-src 'self' https://www.google.com https://app.netlify.com"
</IfModule>
ErrorDocument 404 /404.html

<IfModule mod_headers.c>
Header always set Content-Security-Policy "default-src 'self' https: data: 'unsafe-inline'; \
frame-src 'self' https://www.youtube.com https://player.bilibili.com https://hcaptcha.com https://*.hcaptcha.com; \
script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.algolianet.com https://*.algolia.net https://*.algolia.io https://api.github.com https://kapa-widget-proxy-la7dkmplpq-uc.a.run.app https://hcaptcha.com https://*.hcaptcha.com; \
connect-src 'self' https://*.algolianet.com https://*.algolia.net https://*.algolia.io https://api.github.com https://kapa-widget-proxy-la7dkmplpq-uc.a.run.app; \
frame-ancestors 'self'; \
object-src 'none'; \
upgrade-insecure-requests;"
</IfModule>
1 change: 1 addition & 0 deletions themes/docsy/layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@
data-consent-screen-disclaimer="By clicking 'Allow tracking', you consent to anonymous user tracking which helps us improve our service. We don't collect any personally identifiable information."
data-consent-screen-accept-button-text="Allow tracking"
data-consent-screen-reject-button-text="No, thanks"
data-bot-protection-mechanism="hcaptcha"
></script>
{{ partial "hooks/body-end.html" . }}