Skip to content

Commit

Permalink
Allow font access from partner domain
Browse files Browse the repository at this point in the history
  • Loading branch information
TwanVermeulen committed Dec 9, 2016
1 parent b68ab23 commit 023bdca
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions www/wordpress-homedeal/domains/homedeal.be.dev/vvv-nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,12 @@ server {
# Includes a basic WordPress configuration to help with the common
# rules needed by a web server to deal with WordPress properly.
include /etc/nginx/nginx-wp-common.conf;

location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ {
expires 1M;
access_log off;
add_header "Cache-Control" "public";
add_header "Access-Control-Allow-Origin" "http://partners.skydreams.com.dev";
}
}

7 changes: 7 additions & 0 deletions www/wordpress-homedeal/domains/homedeal.nl.dev/vvv-nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,12 @@ server {
# Includes a basic WordPress configuration to help with the common
# rules needed by a web server to deal with WordPress properly.
include /etc/nginx/nginx-wp-common.conf;

location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ {
expires 1M;
access_log off;
add_header "Cache-Control" "public";
add_header "Access-Control-Allow-Origin" "http://partners.skydreams.com.dev";
}
}

0 comments on commit 023bdca

Please sign in to comment.