api - Laravel X-CSFR-Token mismatch with POSTMAN -
i try talk rest api built laravel. call postman rejected due token mismatch. guess need include csrf token in header. need encrypted one? when insert token still error there token mismatch. i retrieve token using: $encrypter = app('illuminate\encryption\encrypter'); $encrypted_token = $encrypter->encrypt(csrf_token()); return $encrypted_token; but supposed change on every refresh? if aren't using forms - api example - can follow steps here https://gist.github.com/ethanstenis/3cc78c1d097680ac7ef0 : essentially, add following blade or twig header <meta name="csrf-token" content="{{ csrf_token() }}"> install postman interceptor if not installed, , turn on then, in browser log site (you need authorised), , either inspect element or view source retrieve token in postman, set get/post etc needed, , in header create new pair x-csrf-token tokenvaluetobeinserted235kwgeioiulgsk some people recommend turn...