Symfony3 - Make the logout path POST only

100 Views Asked by At

I'm working on a Symfony 3 project - I'd like to make the logout path POST only and protect it using CSRF tokens, like you can do on other routes that use forms.

I can't see anything mentioned in the Security Configuration - is this even possible? Or is there a way of implementing this with some custom logic? Is it possible to implement a custom controller/action for this?

Thanks!

0

There are 0 best solutions below