Create a Remote Site.

From Setup, enter Remote Site Setting in the search bar.

  • Add a Site Name and add the URL to your Sharepoint.

  • Select the Active checkbox

See the Example below.