Hmm…
Jun 19 23:31:38 yarn_init.sh
Hmm…
Jun 19 23:31:38 yarn_init.sh
@eldersnake@we.loveprivacy.club Holy fuck?! That’s unpossible?!
Let’s focus on this ☝️ how in da fuq is this happenning?!
There is only one explanation for this… Lemme see…
The only way this is possible is if the Referrer
is /post
and not /
or /discover
like it should be. Can we confirm/deny this if you inspect the POST /post
requests? 🤔
See this code
if htmx.IsHTMX(r) {
htmx.NewResponse().
Location(RedirectRefererURL(r, s.config, "/")).
Write(w)
} else {
http.Redirect(w, r, RedirectRefererURL(r, s.config, "/"), http.StatusFound)
}
@eldersnake@we.loveprivacy.club I mean on the POST /post
request itself. That’s the Referer
that’s looked up and used as the redirect.
Yeah sorry just realised, but just checked again and the referrer is the same (/post
) on either the POST
or the GET
🤔
The POST /post
XHR (that is being run by htmx) should never, ever be Referer: .../post
🤦♂️