1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-30 19:22:11 +00:00
miniflux-v2/internal/template/templates/common
jvoisin eef084ee3d refactor(template): extract the CSP in a function and systematically use nonces.
Having the CSP built in a function instead of in the template makes it easier
to properly construct it. This was also the opportunity to switch from
default-src 'self' to default-src 'none', to deny everything that isn't
explicitly allowed, instead of allowing everything coming from 'self'.

Moreover, as Miniflux is shoving the content of feeds in the same origin as
itself, using self doesn't do much security-wise. It's much better to
systematically use a nonce-based policy, so that an attacker able to bypass the
sanitization will have to guess the nonce to gain arbitrary javascript
execution.

While the merge-request has been tested locally, it would still be prudent to
thoroughly test it before merging, as it has the potential to break the
user-interface should weird constructs be used.
2025-09-29 20:13:15 +02:00
..
feed_list.html refactor(template): remove some useless attributes 2025-08-15 17:55:49 -07:00
feed_menu.html Replace link has button role with button tag 2024-02-09 17:09:30 -08:00
item_meta.html refactor: Replace "Bookmarks" with "Starred" 2025-08-20 20:49:45 -07:00
layout.html refactor(template): extract the CSP in a function and systematically use nonces. 2025-09-29 20:13:15 +02:00
pagination.html feat(ui): add "back to top" link 2025-09-12 13:41:39 -07:00
settings_menu.html add nav landmark to settings and feed menu 2024-02-04 10:47:30 -08:00