Advertisement
fahimmurshed

Godaddy CDN issue with Astra Fonts

Jun 21st, 2020
1,902
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. // Godaddy CDN issue with Astra Fonts
  2. <IfModule mod_headers.c>
  3. <FilesMatch "\.(svg|ttf|otf|eot|woff|woff2)$">
  4. Header set Access-Control-Allow-Origin "*"
  5. </FilesMatch>
  6. </IfModule>
  7.  
  8. // If not work, use this
  9. <ifmodule mod_headers.c="">
  10.    SetEnvIf Origin "^(.*\.domain\.com)$" ORIGIN_SUB_DOMAIN=$1
  11.    Header set Access-Control-Allow-Origin "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAIN
  12.    Header set Access-Control-Allow-Methods: "*"
  13.    Header set Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept, Authorization"
  14. </ifmodule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement