fix: 验证并修复comprehensive_review_v4问题
已验证的问题状态: 1. P0-07补偿处理器 - 已集成到main.go ✅ 2. P0-09外键校验器 - 已集成到main.go并调用 ✅ 3. 幂等协议Idempotency-Key - 已在idempotency.go实现 ✅ 4. 幂等唯一索引 - 已在SQL中定义 ✅ Gateway修复: - 修复cors.go语法错误(重复函数定义) - 修复middleware_test.go参数不匹配问题 - 修复go.mod降级到go 1.21解决依赖问题
This commit is contained in:
@@ -46,7 +46,6 @@ func CORSMiddleware(config CORSConfig) func(http.Handler) http.Handler {
|
||||
|
||||
// handleCORS Preflight 处理预检请求
|
||||
func handleCORSPreflight(w http.ResponseWriter, r *http.Request, config CORSConfig) {
|
||||
func handleCORS Preflight(w http.ResponseWriter, r *http.Request, config CORSConfig) {
|
||||
origin := r.Header.Get("Origin")
|
||||
|
||||
// 检查origin是否被允许
|
||||
|
||||
Reference in New Issue
Block a user