0

I am developing REST APIs for my project in Laravel 6.*. The problem is that my APIs are working in Postman Chrome Extention and web browser but not in Native Desktop Application. I'm am serving my laravel app. by using php artisan serve command. the The error which i got in postman console Note : I'm not using Bearer Token in this API After adding header

Aadhar
  • 3
  • 5

3 Answers3

0

Since it checks for the csrf tokens,according to me it is not allowing third party to access the api.

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Dec 29 '21 at 07:17
0

According to Screenshot, You are not passing the correct header token while calling API, Try to add your authorization code in the header tab of postman instead of in authorization.

if still, it's not working in that then share picture of postman and your config for API call

0

You should share your postman config if you want better help.

I'd say the common culprits are :

  1. Check your Bearer token.
  2. Make sure you have a content-type header set to application/json if you're expecting a JSON.