0
good afternoon everyone! I have the route below:
Route::get('produtos', 'ProdutosControlador@index')->middleware('auth:api');
well it happens that using Postman I am trying to access and for any reason the Windows automatically redirect to the login page... i want to have access to error message , how do I see what went wrong and how do I stop this redirect??? Without further ado, thank you for your attention!!
You are sending the access information by Postman?
– Woss
yes...sending by Postman and restlet, and both redirect...
– Horacio J.
And what data do you send?
– Woss
send the generated token, and the url I want to access...
– Horacio J.
is adding the header
content-type: application/json
?– Skywalker