My website is working fine with and without www. but when we open any URL of website except domain. Without www awesome font error occured. Example link mention below.
When you load your site without www it includes the CSS files without www as well, however there you have configured a redirect to www and that eventually breaks your Same-Origin policy.
The easiest way to fix this would be to apply that redirect to your main page as well. If you cant do this you could also set up a page rule on Cloudflare