CSRF Token

Apr 9, 2017 csrf laravel blade head
WhatsApp
A short blog post but I’ve also realised that the CSRF token isn’t required to be within a form. It can be placed within your tags. Generally I think in future cases I won’t add additional token tags as they do produce the same token despite having two tags in different locations on the same page.

Example header token CSRF




If you found the following info helpful, I'm happy to accept any donations of the following cryptocurrencies.

  • Bitcoin - 17DTiPExzP9StqveW428acEyB4mVMfKbiK
  • Ethereum - 0x87B8307FD20dc90cc05c94905Ec593134D32B6FF
  • Litecoin - LZMiz5U5sVq9doMLYE3gfLJrxCQDKuyCmU
  • Neo - AXv71WB38ajc1KUUEnxQKhynLLPc4BapVb