CORS error after adding cloudflare

I have an API and web application on separate sub-domains (https://api.example.com and https://portal.example.com). I am getting CORs error after using cloudflare.
I researched the whole day yesterday and can’t find a fix to the issue.

It might be this:

This topic was automatically closed after 14 days. New replies are no longer allowed.