Level 20
You can include it from CDN
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" />
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I am trying to use font awesome icons.
This icon don't show up:
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
<i class="fas fa-times">
In Network Tabs: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://kit.fontawesome.com/a076d05399.js. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403
() GEThttps://kit.fontawesome.com/a076d05399.js
I did try placing this in .htaccess
<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
Any idea why?
Please or to participate in this conversation.