26 April 2021

How to fix font-awesome icons from error (has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.).

Fix font-awesome icons from error (has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.).

Paste in htaccess file    

<IfModule mod_headers.c>
  <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css)$">
    Header set Access-Control-Allow-Origin "*"
  </FilesMatch>
</IfModule>

No comments:

Post a Comment

How to add re-captcha v3 on all Elementor forms using coding?

 Add re-captcha v3 on all Elementor forms using coding add_action('wp_footer',function(){     ?> <script src="https://www...