Skip to content

Instantly share code, notes, and snippets.

@ezhlobo
Created July 9, 2016 14:54
Show Gist options
  • Save ezhlobo/cc4b6a649f0d35929caa2d3f43803c58 to your computer and use it in GitHub Desktop.
Save ezhlobo/cc4b6a649f0d35929caa2d3f43803c58 to your computer and use it in GitHub Desktop.
Debug funcitons
const isFormsProtectedByCSRF = () =>
document.querySelectorAll('form').length === document.querySelectorAll('input[name=_csrf]:not([disabled])').length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment