CORS not working on WP Site with Cloudflare

I added the following to CyberPanel’s rewrite rules config under the website:

<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
</IfModule>

I purged all LS Cache and Cloudflare cache but still not getting the correct header. Anything I’m missing?