News for hackers. Stuff that matters.
Re:Mechanical Apple Watch from Real E-Waste Apple Watch by flangola7 on Thursday June 08, 2023 @11:43PM (#36252844)
Why do browsers even allow this behavior? The back button should automatically skip any blind redirects.
Re:Mechanical Apple Watch from Real E-Waste Apple Watch by j16sdiz on Friday June 09, 2023 @12:42AM (#36253265)
because Single-Page-Applications

they want the back button work with app internal state changes

Re:Mechanical Apple Watch from Real E-Waste Apple Watch by sublinear on Friday June 09, 2023 @12:49AM (#36253321)
Single page apps don't require a frontend router and the same can be achieved by unconditionally sending a redirect from the server side for any request as long as you also hook into the "beforeunload" event in the browser.
Re:Mechanical Apple Watch from Real E-Waste Apple Watch by sublinear on Friday June 09, 2023 @12:48AM (#36253310)
It's not the back button, but these two otherwise useful APIs used in a malicious way together:

https://developer.mozilla.org/en-US/docs/Web/API/Window/befo...

https://developer.mozilla.org/en-US/docs/Web/API/Location/hr...