Reputation: 1441
I need to skip csrf verification for one of my endpoint. So I add that route to $except
array in Anomaly\Streams\Platform\Http\Middleware\VerifyCsrfToken
like this,
protected $except = [ "/payments/notify" ];
But still it not skip the csrf verification. So, please help me with this.
Upvotes: 0
Views: 90
Reputation: 488
There are a few ways to do it listed in documentation. This page should get you started (see included links on page for more options too): https://pyrocms.com/documentation/streams-platform/1.6/the-basics/csrf-protection
Upvotes: 0
Reputation: 789
You can use the api
middleware group:
Or either you can use the resource controller:
Upvotes: 0
Reputation: 3318
try this
protected $except = [
"payments/notify",
"payments/notify/*"
];
Upvotes: 0