I'm using Laravel to build a website with Construct 2
Laravel supplies CSRF tokens when posting forms and I'd like to keep it that way!
I need a safe way to access the CSRF token from within my construct 2 application so that I can post data via AJAX.
I need to access the DOM outside of my games environment so that I can access this CSRF token from a hidden form element. If anyone can think of a better, cleaner and safe way of doing this, then that too would be awesome!
If there's nothing available, perhaps I could make a small plug-in? Would plug-ins allow me to access the DOM