I have an Apex class that calls into Salesforce using a new HttpRequest().
When I call that Apex from Anon Apex, it works fine.
But when I call it from a Flow I am testing in FlowBuilder, it complains that I must deploy a RemoteSiteSetting for URLs on my own org. Like this:
Error Occurred: An Apex error occurred: System.CalloutException: Unauthorized endpoint, please check Setup->Security->Remote site settings. endpoint = https://ability-agility-9151-dev-ed--c.vf.force.com/services/data/v54.0/composite/graph
Somehow in the pure-Apex context it realizes it is calling back into "itself" and doesn't need additional authorization, but in the Flow context, it thinks it needs the Org's REST URLs to be authorized.
Is there a way to fix this?