GDPR compliance issue with code blocks highlighting (third party resources expected) #16957
-
|
When trying to use code blocks with syntax highlighting it will try to load scripts from Due to GDPR, I cannot load third-party resources without consent, therefore, both due to compliance but also security reasons, I disabled the loading of third-party content through CSP (Content Security Policy), but this means that syntax highlighting cannot be used in a GDPR region. My suggestion: Remove the esm.sh dependency and make Misskey host the relevant libraries itself. This would allow for GDPR compliant use of syntax highlighting. Please note: This issue is NOT a duplicate of #14516: That issue is about a rendering bug/fallback, my issue is about removing esm.sh entirely due to compliance. However, removing dependency on esm.sh would resolve both issues in one go. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
As written in Changelog: Lines 1148 to 1149 in da3b3af The current official method for addressing this issue is to edit the config and instruct vite bundler to bundle language definitions. PS* At this time, Misskey has not been developed with GDPR compliance as a priority objective, and compliance is not guaranteed. |
Beta Was this translation helpful? Give feedback.
Comment out or remove the
shikiobject and makeexternalPackagesan empty array.This might fail some CI as shiki language/theme definitions are too big, but there should be no problem other than that
misskey/packages/frontend/vite.config.ts
Lines 40 to 56 in da3b3af