Member-only story
Azure Web App — Azure CDN — WordPress — CORS
Azure CDN with Azure Web App — Access to Font at CDN has been Blocked by CORS Policy
I was using Azure CDN to serve all my files and all the files were loading fine except the fonts and icons because I was getting the CORS issue. Here is the fix.
Introduction
Working with Azure web app is always fun. I was facing a CORS issue in my WordPress web application recently. Here in this post, I am going to share with you the solution that helped me. I was using Azure CDN to serve all my files and all the files were loading fine except the fonts and icons because I was getting the CORS issue. Here is the fix. Preceding is the image of my browser console, where you can see the error clearly.
Here is how my blog looked like when the icons were not loading.