affolternet/affolternet.web/security
Claude Code and agent skill by affolternet/affolternet.web
Trust tier 3
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending
Checking that the SKILL.md file is still in the repository.
Configure security headers, CORS, and the IConfigurableOptions pattern for affolterNET.Web.Api. Use when setting up CSP, HSTS, CORS policies, or custom options.
Install
npx vskill@latest install affolternet/affolternet.web/securitySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as affolternet/affolternet.web/security.
Security Configuration
Configure security headers, CORS, and the options pattern.
For complete reference, see Library Guide.
Security Headers
appsettings.json
Program.cs
CORS Configuration
appsettings.json
IConfigurableOptions Pattern
All options follow a three-tier configuration pattern:
Configuration Sections
| Section | Options Class | |
|---|---|---|
affolterNET:Web:SecurityHeaders | SecurityHeadersOptions | |
affolterNET:Web:Cors | AffolterNetCorsOptions | |
affolterNET:Web:Auth:Provider | AuthProviderOptions |
Common Patterns
Development-specific CORS
Custom CSP for APIs
Troubleshooting
CORS preflight fails
- Ensure
AllowedOriginsincludes the exact origin (including protocol and port) - Check that
AllowedMethodsincludes the HTTP method being used - Verify
AllowCredentialsis true if sending cookies/auth headers
CSP blocks resources
- Review browser console for CSP violation reports
- Add required sources to the appropriate CSP directive
- Consider using
report-uridirective for monitoring
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/affolternet-web-api/skills/security/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/affolternet/affolternet.web/security)