word: allow browser access to json data
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 27 Apr 2021 23:12:24 +0000 (01:12 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 5 Jul 2021 01:54:37 +0000 (03:54 +0200)
.htaccess

index 41f82b4e38e68cc370d93bcf2d11fa298e4b3d35..0c5b23d39f11852d575ed3da12f575af585d6dc7 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -21,8 +21,9 @@ RewriteRule    ^/*([^/]+)(.*)           $1.plp$2
 
 # allow browsers to cache for upto a month
 <IfModule headers_module>
-<FilesMatch "\.(?:css|js)$">
+<FilesMatch "\.(?:css|js|json)$">
 Header set Cache-Control "max-age=2592000"
+Header set Access-Control-Allow-Origin "*"
 </FilesMatch>
 </IfModule>