Ad

Sending Data To Other Domain By Laravel

- 1 answer

I would like to know if this is possible in laravel. I'm a codeigniter developer. I found out that codeigniter cannot allow to receive any data from other domain because I enable the csrf. I need to disable first the csrf to communicate outside of my domain.

I don't know if this is possible in laravel that can communicate to other domain without disabling the csrf. If you have tutorials that can guide me using laravel. Can I ask the link of it? I'm just hoping for your advice for this.

Ad

Answer

In Laravel you have a VerifyCsrfToken middleware with a $except property. Here you can put the URIs that should ignore the CSRF token

Ad
source: stackoverflow.com
Ad