]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
Add sample CORS header for font requests
authorElan Ruusamäe <glen@delfi.ee>
Thu, 19 Feb 2015 21:03:08 +0000 (23:03 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 19 Feb 2015 21:03:35 +0000 (23:03 +0200)
lighttpd-mod_setenv.conf

index 5b91daddfeeceb7cd9143d88025330ed504d6620..68763d96e522b6fd14effc624dd3a7d8ba482b21 100644 (file)
@@ -9,3 +9,11 @@ server.modules += (
 #### setenv
 #setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
 #setenv.add-response-header = ( "X-Secret-Message" => "42" )
+
+# Add CORS header for font requests
+# http://davidwalsh.name/cdn-fonts
+#$HTTP["url"] =~ "\.(?:eot|ttf|otf|woff)$" {
+#      setenv.add-response-header += (
+#              "Access-Control-Allow-Origin" => "*",
+#      )
+#}
This page took 0.043073 seconds and 4 git commands to generate.