Magento 2.4.3 – Admin Dashboard Page Not Loading After Login

adminmagento2magento2.4.3

I have install magento 2.4.3. But i have getting this error in console.

Access to font at 'http://localhost/m243/pub/static/version1628682058/adminhtml/Magento/backend/en_US/fonts/opensans/regular/opensans-400.woff2' from origin 'http://127.0.0.1' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

How to solve this issue ?

enter image description here

Best Answer

You can add a billow line in .htaccess file

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