I have a jQuery Ajax request through which I'm trying to send a CSRF token name stored in a cookie.
When trying to access the cookie, my JS is throwing up an exception.
This is the guilty line of code:
var token = $.cookie("csrf_cookie_name"); I've verified that the cookie does exist by going into my browser preferences and looking at the saved cookies for the domain and for the life of me can't figure out why that line of code is causing an exception.
cookieplugin?document.cookie?