first commot

This commit is contained in:
2026-01-26 09:29:36 +08:00
commit dbb40c38c4
189 changed files with 20198 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# Apache/.htaccess CORS 配置
<IfModule mod_rewrite.c>
RewriteEngine On
# 处理 OPTIONS 预检请求
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=204,L]
# 添加 CORS 头
Header set Access-Control-Allow-Origin "http://localhost:5173"
Header set Access-Control-Allow-Credentials "true"
Header set Access-Control-Allow-Methods "GET, POST, PATCH, PUT, DELETE, OPTIONS"
Header set Access-Control-Allow-Headers "Authorization, Content-Type, X-Requested-With"
</IfModule>