mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 00:53:33 +00:00
Fix Prettier formatting issues
- Remove trailing whitespace and fix indentation in src/app.js - Format whitespace in src/middleware/auth.js - Fix formatting and add missing newline in src/middleware/browserFallback.js 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -771,7 +771,7 @@ const corsMiddleware = (req, res, next) => {
|
||||
|
||||
// 🆕 检查是否为Chrome插件请求
|
||||
const isChromeExtension = origin && origin.startsWith('chrome-extension://')
|
||||
|
||||
|
||||
// 设置CORS头
|
||||
if (allowedOrigins.includes(origin) || !origin || isChromeExtension) {
|
||||
res.header('Access-Control-Allow-Origin', origin || '*')
|
||||
|
||||
Reference in New Issue
Block a user