News Score: Score the News, Sort the News, Rewrite the Headlines

A modern approach to preventing CSRF in Go - Alex Edwards

Go 1.25 introduced a new http.CrossOriginProtection middleware to the standard library — and it got me wondering: Have we finally reached the point where CSRF attacks can be prevented without relying on a token-based check (like double-submit cookies)? Can we build secure web applications without bringing in third-party packages like justinas/nosurf or gorilla/csrf? And I think the answer now may be a cautious “yes” — so long as a few important conditions are met. If you want to skip the explana...

Read more at alexedwards.net

© News Score  score the news, sort the news, rewrite the headlines