Hmm you can get it with an ajax call to your api server. I think it should work.
Feb 5, 2015
5
Level 2
CSRF in separate angular app
So I'm building an API for a client. I decided to use Laravel 5 everything works fine except for posting data. I looked online for answers and they all said to include the laravel {{csrf_token()}} function; however, my angular app is a completely separate app in another server than the laravel API. what are some best practices for me to fix this issue?
Please or to participate in this conversation.