Permalink
Browse files

cors

  • Loading branch information...
1 parent 3cda151 commit 8e2d2b94bee2518907b582a79d76921bdbb5b2d9 @paulirish paulirish committed Feb 18, 2012
Showing with 15 additions and 1 deletion.
  1. +15 −1 .htaccess
View
@@ -24,4 +24,18 @@ RewriteRule ^(.+?)\.(html|js|json|xml)$ handler.php?features=$1&format=$2 [NC,QS
ExpiresByType text/css "access plus 1 day"
ExpiresByType application/javascript "access plus 1 day"
-</IfModule>
+</IfModule>
+
+
+
+----------------------------------------------------------------------
+Cross-domain AJAX requests
+----------------------------------------------------------------------
+
+Serve cross-domain Ajax requests, disabled by default.
+enable-cors.org
+code.google.com/p/html5security/wiki/CrossOriginRequestSecurity
+
+<IfModule mod_headers.c>
+ Header set Access-Control-Allow-Origin "*"
+</IfModule>

0 comments on commit 8e2d2b9

Please sign in to comment.