什麼是 open-cors-anti-pattern?
開放跨源資源共享 (CORS) 策略的安全反模式 (CWE-942)。在產生或檢查伺服器配置、API 後端或任何設定 CORS 標頭的程式碼時使用。偵測過於寬鬆的 Access-Control-Allow-Origin 標頭,包括通配符、空源和反射源。 來源:igbuend/grimbard。
開放跨源資源共享 (CORS) 策略的安全反模式 (CWE-942)。在產生或檢查伺服器配置、API 後端或任何設定 CORS 標頭的程式碼時使用。偵測過於寬鬆的 Access-Control-Allow-Origin 標頭,包括通配符、空源和反射源。
透過命令列快速安裝 open-cors-anti-pattern AI 技能到你的開發環境
來源:igbuend/grimbard。
Misconfigured CORS policies allow any website to make authenticated requests on behalf of users. Servers responding with Access-Control-Allow-Origin: or reflecting client Origin headers enable data theft and unauthorized actions.
The anti-pattern is overly permissive Access-Control-Allow-Origin headers: wildcard () or reflecting client Origin values.
curl -H "Origin: https://evil.com" -I https://yourapp.com/api/some-endpoint Check if the response contains Access-Control-Allow-Origin: https://evil.com.
開放跨源資源共享 (CORS) 策略的安全反模式 (CWE-942)。在產生或檢查伺服器配置、API 後端或任何設定 CORS 標頭的程式碼時使用。偵測過於寬鬆的 Access-Control-Allow-Origin 標頭,包括通配符、空源和反射源。 來源:igbuend/grimbard。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/igbuend/grimbard --skill open-cors-anti-pattern開放跨源資源共享 (CORS) 策略的安全反模式 (CWE-942)。在產生或檢查伺服器配置、API 後端或任何設定 CORS 標頭的程式碼時使用。偵測過於寬鬆的 Access-Control-Allow-Origin 標頭,包括通配符、空源和反射源。 來源:igbuend/grimbard。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/igbuend/grimbard --skill open-cors-anti-pattern 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/igbuend/grimbard