We had a similar problem: Friendica could reach a Mastodon instance that resided on the same server, but couldn’t follow its accounts.Our system engineer found a solution to the problem here:https://github.com/mastodon/mastodon/issues/20141#issuecomment-1307688586In our case there wasn’t the additional complication of Cloudflare’s CDN, but perhaps what was written there could help find your solution