fix: RegelHet stuurt de security headers mee en laat /api/ niet bewaren #53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/regelhet-security-headers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
RegelHet stuurde geen van de headers die editor-api, admin en poc-portal via
regelrecht_auth::security_headerszetten (nosniff, X-Frame-Options DENY, Referrer-Policy, HSTS, Permissions-Policy). Een antwoord onder/api/, met BSN's en namen, had geen Cache-Control. Nu wel, op de server van een procedure en op de voorkant van een organisatie./api/krijgtno-storeals het antwoord zelf niets zet; de pagina houdtno-cache, en/fsc4b/houdt zijnpublic, max-age=300.De CSP is bewust smal:
frame-ancestors 'none'; base-uri 'none'; object-src 'none'. Een volle policy zoalsEDITOR_CSPis nog niet tegen de schermen gehouden, en een bron die hij mist breekt een scherm alleen in de browser. Niets in de repo laadt RegelHet in een iframe; de console van de plugin draait in zijn eigen iframe.Nieuwe test
every_answer_carries_the_security_headers_and_the_api_is_not_stored. fmt, clippy en alle tests van de crate groen in het CI-image. Niet in een browser doorgeklikt.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.