From 195bd49d536f0f4f065d06d81ac82c08dd1ff31d Mon Sep 17 00:00:00 2001 From: Joachim Desroches Date: Thu, 16 Sep 2021 14:00:25 +0200 Subject: [PATCH] All CORS for woff and woff2 files in WP. --- type/__recycledcloud_wordpress/manifest | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/type/__recycledcloud_wordpress/manifest b/type/__recycledcloud_wordpress/manifest index a5c9531..15b51c4 100644 --- a/type/__recycledcloud_wordpress/manifest +++ b/type/__recycledcloud_wordpress/manifest @@ -84,4 +84,8 @@ require="__package/nginx" __nginx "$nginx_domain" \ expires max; log_not_found off; } + + location ~* \.(woff|woff2)$ { + add_header Access-Control-Allow-Origin *; + } EOF