fix: incomplete CSP headers for kapa
This should address the following errors showing up in the console:
kapa-widget.bundle.js:2 Refused to load the script 'https://metrics.kapa.ai/web/v3/MHIUVE6Y4VV6H5lpgMyI/loader_v3.11.2.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' 'unsafe-inline' https://internetcomputer.matomo.cloud https://cdn.matomo.cloud https://widget.kapa.ai https://www.google.com https://www.gstatic.com". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
Thank you for your contribution to the IC Developer Portal. This repo contains the content for https://internetcomputer.org and the ICP Developer Documentation, https://internetcomputer.org/docs/.
If you are submitting a Pull Request for adding or changing content on the ICP Developer Documentation, please make sure that your contribution meets the following requirements:
- [x] Follows the developer docs style guide.
- [x] Follows the best practices and guidelines.
- [x] New documentation pages include document tags.
- [x] New documentation pages include SEO keywords.
- [x] New documents are in the
.mdxfile format to support the previous two components. - [x] New documents are registered in
/sidebars.js, otherwise, it will not appear in the side navigation bar. - [x] Make sure that the
.github/CODEOWNERSfile is filled with new documents that you added. This way we can ensure that future Pull Requests are reviewed by the right people.
🤖 Here's your preview: https://fkpod-biaaa-aaaam-abtcq-cai.icp0.io
Doesn't look like it's working on the preview...
note:
- due to some issues with reCaptcha we switched recently to hCaptcha and I did some other adjustments for this
- see https://github.com/dfinity/portal/pull/5982, https://github.com/dfinity/portal/pull/5983 and https://github.com/dfinity/portal/pull/5984
regarding the issue in the console I hope the new PR will finally fix this: https://github.com/dfinity/portal/pull/6007