sihl
sihl copied to clipboard
Improve CSRF documentation and generation
- ~Mention that the default
__Host
prefix only works with HTTPS, so testing onHTTP localhost
with production won't work~ - ~Change
<input type="hidden" name="csrf" value=.../>
to<input type="hidden" name="_csrf" value=.../>
here~ - [ ] Fix the admin UI CSRF name here to use the CSRF middleware parameter
Update 20.12.2021:
First two TODOs are no longer relevant because the cookie the CSRF is stored in changed (1) and the input name is parameterized now (2).