If you have added a CDN to your WordPress website, and the CDN and the main domain are not the same URL, it is very likely that when viewing the source code, you will see the error ‚no ‘access-control-allow-origin‚ header is present on the requested resource‘. This problem is caused by font cross-domain permissions. If you are using Apache, you only need to add the following code to the server‚s pseudo-static file.
# Set CORS <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> </FilesMatch> # Set CORS
