[openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)
Tom Hughes
notifications at github.com
Sun Jan 26 10:20:38 UTC 2025
> I'm working on resolving this CSP violations. Right now I'm trying to generate nonce for the .js file and use that to validate and transpass the CSP violation. I'm not sure if it is the right approach for this since I never had experience dealing with similar stuff before. If there is a more elegant and compact solution, please feel free to point it out.
Using nonces should be an absolute last resort though it is possible if we need to - it is enabled for styles and the nonce is available in the `csp-nonce` meta tag in the document head.
Much better to use a proper stylesheet and just add and remove classes if you can though.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5402#issuecomment-2614313052
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5402/c2614313052 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250126/f3520ef1/attachment.htm>
More information about the rails-dev
mailing list