browse/
3 results
languages/ruby-blocks-how-a-method-borrows-a-piece-of-your-code-and-runs-it-with.md
Ruby blocks: how a method borrows a piece of your code and runs it with yield
Ruby code is full of curly-brace chunks like `list.each { |x| ... }`. Who runs that chunk, and when? This article follows a block from the…
security/csrf-why-a-request-carrying-your-cookie-isn-t-proof-that-you-sent-it.md
CSRF: why a request carrying your cookie isn't proof that you sent it
Log in to your bank in one tab, open a stranger's page in another, and a hidden form can make your browser send money. The attacker never…
web/cors-why-a-browser-blocks-a-request-your-server-happily-answered.md
CORS: why a browser blocks a request your server happily answered
You call your own API from a web page and the browser says blocked by CORS policy, even though the address works in a new tab. The server…