🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

Fix WordPress No ‚Access-Control-Allow-Origin‘ header is present Error

If you have added a CDN to your WordPress website, and the CDN and the website's primary domain are not the same URL, you are likely to encounter the error 'no 'access-control-allow-origin' header is present on the requested resource' when viewing the source code. This issue is caused by cross-origin font permissions. If you are using Apache, you can resolve it by adding the following code snippet to your host'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

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step.

「Naibabiji WordPress Website Building Coaching Service」—From choosing a domain and buying hosting, to installing a Theme and publishing content, I「ll coach you through every step, helping you avoid detours and reach your goal directly.

👉 Learn about the Website Building Coaching Service
🔒

Comments are closed

The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.

×
二维码

Scan QR Code to Follow

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: