Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Godaddy CDN issue with Astra Fonts
- <IfModule mod_headers.c>
- <FilesMatch "\.(svg|ttf|otf|eot|woff|woff2)$">
- Header set Access-Control-Allow-Origin "*"
- </FilesMatch>
- </IfModule>
- // If not work, use this
- <ifmodule mod_headers.c="">
- SetEnvIf Origin "^(.*\.domain\.com)$" ORIGIN_SUB_DOMAIN=$1
- Header set Access-Control-Allow-Origin "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAIN
- Header set Access-Control-Allow-Methods: "*"
- Header set Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept, Authorization"
- </ifmodule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement