<PackageReference Include="Refit" Version="16.2.0" />

Refit.NextLinkOriginPolicy

public sealed class NextLinkOriginPolicy
Decides which server-supplied next-page links a paging helper may follow. A followed link is sent through the same client as every other request, so it carries that client's credentials to whatever origin the link names.
public static NextLinkOriginPolicy Unrestricted { get; }

Gets a policy that follows a link to any http or https origin, forwarding the client's credentials to it.

public static NextLinkOriginPolicy Allow(Uri[] origins)

Creates a policy that follows only links whose scheme, host and port match one of the given origins.

public bool IsAllowed(Uri link)

Gets a value indicating whether a paging helper may follow link.