Added allow header for 405 error in controller.