victorious-cat-12942
09/13/2022, 4:11 PMvictorious-cat-12942
09/13/2022, 4:11 PMvictorious-cat-12942
09/13/2022, 4:13 PMvictorious-cat-12942
09/13/2022, 4:17 PMtall-dinner-62086
09/13/2022, 4:22 PMhx-target
. For example, html
<!-- form -->
<select hx-trigger="load" hx-get="/get/my/options"></select>
<!-- return from /get/my/options -->
<option>option 1</option>
<option>option 2</option>
victorious-cat-12942
09/13/2022, 4:30 PMhundreds-camera-24900
09/13/2022, 5:25 PMbitter-monkey-50309
09/13/2022, 6:03 PMSameSite
cookies don't offer full protection and personally I don't think it's much of a hassle to include CSRF tokens as Django makes it pretty simplehundreds-camera-24900
09/13/2022, 6:03 PMbitter-monkey-50309
09/13/2022, 6:07 PMStrict
does protect, but it has the oddity of if you click a link from another website when you should be authenticated you're not actually logged in because the cookies aren't sent, so for UX I (personally) wouldn't use that. And Lax
lets GET
requests pass the cookie and sometimes I'm dumb and things happen on those requests that I wouldn't necessarily wanthundreds-camera-24900
09/13/2022, 6:26 PMhundreds-camera-24900
09/13/2022, 6:26 PMbland-coat-6833
09/13/2022, 9:56 PMSameSite
is to have two cookies - one Lax
for GETs or non-destructive access, and another Strict
one for `POST`s or changing data. But you still have to remember to not do something stupid in the wrong route.proud-librarian-99598
09/20/2022, 1:28 PMuseTemplateFragments
also not fixing it. Did you find a solution for it?proud-librarian-99598
09/20/2022, 1:41 PM<tr>
elements to returning the full <table>
and that makes it work.flat-painting-36912
09/21/2022, 10:11 PMflat-painting-36912
09/21/2022, 10:11 PMflat-painting-36912
09/21/2022, 10:11 PMflat-painting-36912
09/21/2022, 10:12 PMflat-painting-36912
09/21/2022, 10:12 PMflat-painting-36912
09/21/2022, 10:12 PMflat-painting-36912
09/21/2022, 10:17 PMgorgeous-airport-54386
09/21/2022, 10:19 PMflat-painting-36912
09/21/2022, 10:32 PMancient-shoe-86801
09/21/2022, 11:13 PMancient-shoe-86801
09/21/2022, 11:18 PMbland-coat-6833
09/22/2022, 10:48 AMcuddly-keyboard-70746
09/22/2022, 12:13 PMcuddly-keyboard-70746
09/22/2022, 12:14 PMflat-painting-36912
09/22/2022, 12:34 PM