Home > Software design >  My APIs are not working in Postman but works in browser | Laravel for REST | Postman v9.7.0 Native D
My APIs are not working in Postman but works in browser | Laravel for REST | Postman v9.7.0 Native D

Time:12-29

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

CodePudding user response:

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

CodePudding user response:

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

CodePudding user response:

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.
  • Related