apply cross-domain changes proposed in #23

closes #23
This commit is contained in:
AD7six 2014-04-08 10:13:29 +00:00
parent 46e4d5b30b
commit bf0e3657f9
3 changed files with 16 additions and 3 deletions

View File

@ -1,2 +0,0 @@
# Cross domain AJAX requests
add_header "Access-Control-Allow-Origin" "*";

View File

@ -0,0 +1,15 @@
# Cross domain AJAX requests
# **Security Warning**
# Do not use this without understanding the concequences.
# This will permit access from any other website.
#
add_header "Access-Control-Allow-Origin" "*";
# Instead of using this file, consider using a specific rule such as:
#
# Allow access based on [sub]domain:
# add_header "Access-Control-Allow-Origin" "subdomain.example.com";
# OR
# add_header "Access-Control-Allow-Origin" "*.example.com";

View File

@ -1,6 +1,6 @@
# Cross domain webfont access
location ~* \.(?:ttf|ttc|otf|eot|woff)$ {
add_header "Access-Control-Allow-Origin" "*";
include h5bp/directive-only/cross-domain-insecure.conf;
# Also, set cache rules for webfonts.
#