CSRF with external forms |
Hi,
I have implemented CSRF on my site and all is working as expected hwn making AJAX posts to my controller(s). However, it appears that external communication with Stripe fails (it was working before implementing CSRF). Would I need to include the Stripe URL's (or something else) in the Excpet array in Filters? Many thanks.
You will need to exclude the URL(s) that stripe sends (a) POST request(s) to in your application.
(10-07-2023, 03:40 AM)68thorby68 Wrote: Hi, In Config/Filters.php yo need to do something like this: PHP Code: 'csrf' => ['except' => ['receive-pdf', 'receive_pdf']],
Simpler is always better
|
Welcome Guest, Not a member yet? Register Sign In |