Background of the issue:
I am trying to use FontAwesome icons with Elementor on my WordPress site. The issue can be seen on this page: hidden link
Symptoms:
The FontAwesome icons are not loading on the secondary language page (different domain). Instead of the icons, I see simple rectangles, and I am getting a 404 error and CORS issues.
Questions:
Why are FontAwesome icons not loading on the secondary language page?
How can I resolve the 404 and CORS issues with FontAwesome in Elementor?
We recommend reaching out to your web hosting provider and requesting them to set the CORS policy specifically with the
Access-Control-Allow-Origin header.
This adjustment will allow your .at domain to correctly load content from the intended source domain.
For detailed guidance on setting CORS policies, please visit: hidden link
For example if you are on an Apache server you would add the following to your .htaccess, however, please consult with your hosting provider before you add any code to your .htaccess.
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET,POST,PUT,DELETE,OPTIONS"
Header set Access-Control-Allow-Headers "Content-Type, Authorization"
</IfModule>
NOTE: Before adding any code provided by our team always make sure to test have a working backup and testing on a staging site firs. The above code is shared as an example of how you could possibly enable this module using .htaccess.
The topic ‘[Closed] FontAwesome from Elementor not loading on secondary language’ is closed to new replies.