Ho un percorso con questo percorso405 Metodo non ammessi in Symfony 3
/**
* @Method({"DELETE"})
* @Route("/secure/users")
*/
Quando provo a fare un ricciolo
<html>
<head>
<meta charset="UTF-8" />
<title>An Error Occurred: Method Not Allowed</title>
</head>
<body>
<h1>Oops! An Error Occurred</h1>
<h2>The server returned a "405 Method Not Allowed".</h2>
<div>
Something is broken. Please let us know what you were doing when this error occurred.
We will fix it as soon as possible. Sorry for any inconvenience caused.
</div>
</body>
</html>
ho cercato di abilitare anche
Request::enableHttpMethodParameterOverride();
in app.dev e app_dev.php, infatti posso gestire le richieste PUT
.
Come si esegue la richiesta? Il metodo HTTP è effettivamente DELETE (dal messaggio di errore sembra che tu abbia inviato una richiesta con un diverso metodo HTTP)? – xabbuh