Cross-domain stuff

This commit is contained in:
Alessandro Vendruscolo 2012-07-21 17:09:06 +02:00
parent 1c5df514a3
commit d63f139841
1 changed files with 7 additions and 0 deletions

View File

@ -172,6 +172,13 @@ http {
# opt-in to the future
add_header "X-UA-Compatible" "IE=Edge,chrome=1";
# Cross domain AJAX requests
# add_header "Access-Control-Allow-Origin" "*";
# Cross domain webfont access
location ~* \.(ttf|ttc|otf|eot|woff|font.css)$ {
add_header "Access-Control-Allow-Origin" "*";
}
# Prevent clients from accessing hidden files (starting with a dot)
location ~* (^|/)\. {