用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill cors命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | CORS |
| description | Configure Cross-Origin Resource Sharing correctly to avoid security issues and debugging pain. |
| metadata | {"clawdbot":{"emoji":"🔀","os":["linux","darwin","win32"]}} |
Access-Control-Allow-Origin: * incompatible with credentials—must specify exact originAccess-Control-Allow-Credentials: true required for cookies/auth headerscredentials: 'include'; XHR: withCredentials = true* doesn't match subdomains—*.example.com is invalid, not a pattern* with credentials—specify origin dynamically from requestAccess-Control-Allow-Headers: * works in most browsers but not all—list explicitly for compatibilityAccess-Control-Expose-Headers: * same issue—list headers you need to exposeexample.com matches evilexample.com—anchor the patternnull origin: sandboxed iframes, file:// URLs—usually reject, never allow as trustedVary: Origin when response depends on origin—even if you allow only oneVary: Access-Control-Request-Headers, Access-Control-Request-Method for preflight caching correctnessAccess-Control-Expose-HeadersX-Request-ID, X-RateLimit-*, etc. need explicit exposure—common oversightAccess-Control-Max-Age: 86400 caches preflight for 24h—reduces OPTIONS traffic significantlymode: 'no-cors' succeeds but response is empty—usually not what you wantAccess-Control-Allow-Origin: "*", "https://example.com"—must be single value, not listAccess-Control-Allow-Private-Network: true for localhost access from public web