Created
November 1, 2015 09:03
-
-
Save sahibalejandro/007b6f3fe37034703150 to your computer and use it in GitHub Desktop.
Get csrf token form meta tag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default () => { | |
return document.querySelector('meta[name="csrf-token"]').getAttribute('content'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment