How to cancel order Programmatically without disabling URL security key


Here am trying to Cancel a order from a controller using order ID. but order is cancelling only if security key adding to URL disabled from admin configuration. How to cancel order without disabling secure URL Key.

here is my code controller

protected $orderManagement;
public function __construct( MagentoSalesApiOrderManagementInterface $orderManagement)
{
 $this->orderManagement = $orderManagement;
}
 public function execute()
 {
   $orderId = 10;  
   if($this->orderManagement->cancel((int)$orderId)){
        $this->messageManager->addSuccess(__("Order Cancellation Success"));
        return $resultRedirect;
   }else{
        $this->messageManager->addError(__("Can't Cancel this Order"));
        return $resultRedirect;
   }
}

Where am doing wrong. Can I get help? Thank you in advance.