POST Ajax Requests With CSRF Fields - Build Expense Tracker App With PHP 8

preview_player
Показать описание
In this video we add support for POST AJAX requests along with CSRF protection to POST routes when making requests via JS.

SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
👍 Smash the like button
🤝 Subscribe to the channel & turn the notifications on
💬 Post comments, any feedback is greatly appreciated
THANK YOU!

🛠️ TOOLS & SERVICES I USE

LESSON P.14

** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.
Рекомендации по теме
Комментарии
Автор

Thanks for another great video, Gio! Looking forward to more Laravel content, as I've just started diving into it after having explored Symfony as a framework and by using individual components in work-related projects last year. I am transitioning into a full-time developer position late February, and then I will finally be able to support your work. Cheers!

CyberSpaceFilms
Автор

Great, the follow up came early!! Even though I'm still digesting the earlier one. Thanks Gio

Zubbee
Автор

Oh Gio, First Watch and I'm feeling a bit in-over-my-head. Well I haven't practiced yet. When I do I believe I'll feel better and understand better. These are things I would never have done if I was building an application myself so this is certainly stretching me. And stretching is good. I am learning absolutely new ways of doing things. The ajax request tutorial on W3Schools for instance appears rather simplistic from what we are learning here. In all, I want to thank you...more power to your elbows.

Zubbee
Автор

simple edit/update is so complex in php . Laravel made working with php so easy and enjoyable .

bhardwaj_abhi
Автор

Thanks for every second that you have spent for this community. I really appreciate the hard work that you have done to us. Also Gio one question, did you ever use Laravel livewire in your projects? It is making this AJAX request so simpler.

Armando-pxhi
Автор

Thanks Gio. I want to understand the js code we are using so now I am learning both php and Js haha

themaridv
Автор

Thanks for this amazing series of videos. You've build this to apply CSRF globally for all POST requests. I'm setting up a webhook endpoint which will be fired from a 3rd party application and I want to exclude the webhook route from the CSRF protection - we will protect the webhook using token in the header request. How would I exclude it from one route but still keep it in place for the balance of the routes as you have done? Any suggestions would be greatly appreciated.

davidfeldt
Автор

Hey Gio, thanks for the awesome content 🤍🤍.
I have a question about the mistake was made here 10:05 . Why do we need to specify the content type in here ??

dev_troy
Автор

Please make video on how to apply solid principle and design patterns in projects

rajabhi
Автор

Will you teach about Lavarel framework?

hoanhm