i am uploading files with ngFlow to laravel. the CSRF token is sent via ajax with:
<script>angular.module("app").constant("CSRF_TOKEN", '[[ csrf_token() ]]');</script
>
and its injected to the controllers via a service.
how would i atach the token to the request?
Question is very old, you can try this way passing it through flow-init.
flow-init="{headers: {'X-CSRF-TOKEN': '{{ csrf_token() }}'}}"
Hope it helps someone !
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.