Making a callout from an Apex trigger is not allowed synchronously; hence, such callouts must be performed in an asynchronous context. The only way to perform this within the Salesforce platform is by using asynchronous Apex, such as @future methods or Queueable Apex.References: Apex Developer Guide - Asynchronous Apex