<PackageReference Include="Refit" Version="16.1.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.
namespace Refit { public sealed class NextLinkOriginPolicy { public static NextLinkOriginPolicy Unrestricted { get; } public static NextLinkOriginPolicy Allow(params Uri[] origins); public bool IsAllowed(Uri link); } }