by plz-remove-card · 2y ago · 0 comments
> SOP. many email providers do this
Heh, are they inadvertently unsubscribing folks from newsletters by making requests to the "Unsubscribe" links too?
Most Unsubscribe pages I've seen recently appear to be a two or more step process but I'm sure there's some folks out there making unsubscribe pages that do the thing on the initial GET request alone... (not justifying making a GET perform a side effect, just saying it's interesting.)
How I've seen developers approach this, is the initial GET request loads a form, and requires that the user clicks something once more, to then submit a POST request and confirm the unsubscribe action.
[0] https://developer.mozilla.org/en-US/docs/Glossary/Safe/HTTP
You're right, this is interesting, something I have wondered about before.