Axios setup for Laravel API requests

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

May I know when the Sanctum course will be available?

holakonoob
Автор

Brilliant!!!
One question please, I searched all the forums but I couldn't find the answer.
How can I capture or prevent those errors that have an x ​​on the left, those that begin with GET, POST from LoginView.vue:16 from appearing in the console?
I am working with Angular.

adrianduarte
Автор

Amazing video and blog post! Thanks! I have a doubt, in Laravel and sanctum we need an access token to all requests, how can we add that token to this axios client? I'm trying to use interceptors, an returns the token, but all the requests return Unauthtenticated, how can we accomplish that?

luisxd
Автор

Can i ask you please ?🙏, so im working on exactly this part except im using nextjs, and i wanted to define axios interceptors for the requests, inside it i checked if the path is different from "/login", if so i want to check if the x-xsrf-token header exists in config.headers with the following code: if("X-XSRF-TOKEN" in config.headers), but it seems that even when im logged in and i get the user it always returns false, when i console log the config.headers it shows that the header exists but when i try with the condition it return false.
Any tips or idea that can help me please 🙏

simod.
Автор

Your tutorials are so good, can we have a longer course so that we can follow
properly

munandisichali
Автор

Could you provide vscode theme link? Thanks

shaneshrestha
Автор

thanks for the video! Please, can you provide name of theme?

АлександрЮрковский-жы
visit shbcf.ru