CORS issues with axios.post triggered deploy webhook

Hi.
I have two sites on Cloudflare Pages - CMS and a website. CMS is Sanity and the website is built with Eleventy SSG.
I’m using Axios POST in Sainty as a custom action to trigger the deploy webhook, that’s how I used to do with Netlify, but here I’m getting a CORS error as the POST response says “network error”. At the same time, the deployment is triggered and the website gets rebuilt.

As a Cloudflare newbie, I’d appreciate it if someone could shed some light on the matter.

Cheers.