diff --git a/security.rst b/security.rst index 1299f2337b3..5e9d1393a79 100644 --- a/security.rst +++ b/security.rst @@ -1705,7 +1705,7 @@ Next, you need to create a route for this URL (but not a controller): class SecurityController extends AbstractController { - #[Route('/logout', name: 'app_logout', methods: ['POST'])] + #[Route('/logout', name: 'app_logout', methods: ['GET'])] public function logout() { // controller can be blank: it will never be called!