TIL: Ruby Authenticity Tokens - Reusing the HTML Value

ruby dev.to

I've been learning about Ruby Form Authenticity Tokens recently, and wanted to dig a bit deeper - specifically looking into why it seems that i can reuse the 'value' that appears in the HTML form. Background: When you insert the Form Authenticity Token input type into the relevant form, the token becomes viewable in the Dev Console: I'll store the actual token value here for reference: A5KRrymA_WZ9C7lCkiXrhBMXMAlIilnNgvizf2K85aYdv2HuxrEog73Hgz22HltTv7nihHIZpT-XUB0euL219A

Read Full Tutorial open_in_new
arrow_back Back to Tutorials