From 33fd53bc9ec6963af0e91dc8ffc1fb1ae7c62799 Mon Sep 17 00:00:00 2001 From: wangchuanli Date: Thu, 20 Aug 2026 16:28:56 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20Gitea=20Pages=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pages.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .pages.yaml diff --git a/.pages.yaml b/.pages.yaml new file mode 100644 index 0000000..f3b0699 --- /dev/null +++ b/.pages.yaml @@ -0,0 +1,19 @@ +# Gitea Pages 仓库级配置 +# 文档: gitea-pages (d7z-project) 通过仓库内 .pages.yaml 控制安全/路由等行为 + +security: + cors: + # 允许跨域(子域)加载字体等静态资源的来源 + origins: + - https://wangchuanli.pages.iwali.top + - https://pages.iwali.top + # 允许的请求方法 + methods: + - GET + - HEAD + - OPTIONS + # 允许的请求头 + headers: + - '*' + # 是否允许携带凭证(cookie) + credentials: true