From 6de4865052393c2e53c086774388fe66053e8e98 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 22 Jul 2025 19:59:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=A8=E6=88=B7=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E5=A4=B1=E8=B4=A5=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/nginx/default.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf index 6dbfa790a..691617fc3 100644 --- a/docker/nginx/default.conf +++ b/docker/nginx/default.conf @@ -35,7 +35,7 @@ server { add_header Access-Control-Expose-Headers "Date, Last-Modified, Age" always; location / { - if ($uri ~* \.(jpe?g|png|gif|webp|svg|ico|bmp)$) { + if ($uri ~* ^/uploads/.*\.(jpe?g|png|gif|webp)$) { add_header Access-Control-Allow-Origin "http://localhost:2222" always; add_header Access-Control-Allow-Methods "GET, OPTIONS" always; add_header Access-Control-Allow-Headers "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization" always;