Hello everybody - I could really appreciate some help!
I am rather new to the newer Azure offerings but I am attempting to stand up the Azure Wordpress service (I take it a wrapper basically around app service and what not). I opted to use the Azure blobstorage CDN with the W3 total cache plugin (I let Azure set this up - I did not do this manually).
So far it has been going decent, stood up easily, added my custom domain and then installed a custom theme.
That's when I have run into an issue - CORS errors to be specific.
On various css/font files I get errors like:
"Access to font at 'https://<removed for privacy>-endpoint.azureedge.net/blob<removed some for privacy>b5a9b/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-brands-400.ttf' from origin 'https://www.<my custom domain as added in the Wordpress app service custom domain UI in Azure portal>.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
I have tried adding my custom domain (https://www.<my custom domain>.com) to the CORS setting in the Azure UI for the App Service and for the blobstorage account it generated in the resource group when I stood it up. I also tried adding the Azure generated domain for ("<removed for privacy>.azurewebsites.net") but no luck there either. These were all done with max age 0, Allowed headers = *, Exposed headers = *, Allowed methods = get/post/options (as clicked in UI) and tested in a Chrome private tab (no cache).
I don't mind configuring this but it seems like something the service should have done automatically when providing the custom domain in my opinion. Any help is most welcome!
Update #1 2/6/24 8:22PM EST: Some hours later after changing nothing more the CORS issues seem to be gone for now. I had previously restarted the app service after the above changes so I really have no clue why it seems to have taken hours to propagate.
Update #2 2/6/24 9:55PM EST: Actually while a lot of them are resolved there are still a couple CORS errors on a few .woff and .tff files on a load of my site I just checked so it looks like its not solved completely. (These fonts don't try to load until I scroll down so I didn't see they were still CORS erroring). They have the same method, origin url, etc. only difference is they are in the themes folder instead of the plugins folder of wp-content - which boggles my mind because CORS isn't that specific that I know of.