Analytics GraphQL CORS issue

Hi,
I’m using this example https://developers.cloudflare.com/analytics/graphql-api/tutorials/build-your-own-analytics and I’m getting CORS issue. Is that tutorial missing some steps?

afaik api.cloudflare.com has never responded with third-party-friendly CORS headers for security and anti-abuse reasons, maybe this tutorial is just ignorant and they were testing with cors disabled.