From 5fba6e4c4a9df97a305764a69ebf70a872d38cd8 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 12 Apr 2023 15:35:05 -0400 Subject: [PATCH] Enable CORS for /schema --- htdocs/.htaccess | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/.htaccess b/htdocs/.htaccess index 9ee5d7a0..ec57a280 100644 --- a/htdocs/.htaccess +++ b/htdocs/.htaccess @@ -33,6 +33,8 @@ RewriteRule ^zotero-schema/schema\.json.gz$ - [T=application/json,E=no-gzip:1] Header append Content-Encoding gzip # Force proxies to cache gzipped & non-gzipped schema file separately Header append Vary Accept-Encoding + # CORS + Header set Access-Control-Allow-Origin "*" # If file or directory doesn't exist, pass to director for MVC redirections