Category "laravel-api"

Laravel Passport - Not able to get token string in response?

i am getting result like below in registration using passport laravel "success": { "token": { "name": "MyApp", "abilities": [

blocked by CORS :The 'Access-Control-Allow-Origin' header contains multiple values '*, *', Laravel8

Access to XMLHttpRequest at 'http://localhost:8000/api/objectives' from origin 'http://localhost:4200' has been blocked by CORS policy: The 'Access-Control-Allo

Can´t fetch data from laravel api by react JS - status of 419 (unknown status), postman working

I am trying to get data from laravel api by fetching it. In postman it`s working even with authorization with sanctum. When I fetch with post method it gives: F

POST failed via Postman API to Laravel migrations database

GET is working, but POST does not. This is because it fails via Postman API to the Laravel migrations database. function add_user(Request $request) { $user