CDN Exclude if substring dosn’t change what is rewritten
-
I have a CDN set up for my https site. Both the main domain and CDN are https. Everything work well except some browsers complain about loading fonts from another domain. Specifically Chrome complains like this:
Access to Font at ‘https://cdn2.glasshousestore.com/wp-content/themes/storefront/assets/fonts/fontawesome-webfont.woff2?v=4.6.3’ from origin ‘https://cdn2.glasshousestore.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://test.glasshousestore.com’ is therefore not allowed access.
I’d like to exclude the cdn substitution for anything with “woff2” and a couple other file types using the “Exclude if substring” function on the CDN tab. Unfortunately nothing I put in there seems to appect which URL’s are rewritten to the CDN. I fave tried “.php, .woff2” and “.php, fontawesome”. Neither change the behaviour of the substitution. What am I missing in the syntax? How can I troubleshoot?
- The topic ‘CDN Exclude if substring dosn’t change what is rewritten’ is closed to new replies.