I have completely separated my front ui and my back-end, since I may move to another implementation for either one in the future. As such, my backend runs on Laravel from /api/
and my front runs on AngularJS from /index.html
.
Is there a way I can generate a csrf
token from Laravel to use in the backend? My problem is as I said: I cannot use csrf_token()
since the Laravel app is in a completely separate folder.