How do i enable .htaccess for all my domains

I currently migrated from CPanel to HestiaCP, and my domains have a .htaccess file in their root directories. But it seems the .htaccess file is not working.
I have the following directive in one of the domains which is a cdn that simply has font files and css files that are imported into other domains.

<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
    Header set Access-Control-Allow-Methods "GET, OPTIONS"
    Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept"
</IfModule>

But i still get CORS error on the front end. Which was not the case in my previous panel.
I installed HestiaCP using the following directive for “Regular Installation” in this documentation.
Getting Started | Hestia Control Panel (hestiacp.com)

Are there any other additional steps i need to take to enable .htaccess for all my domains.