orchardcore-cors

orchardcore-cors is a skill for Claude Code from CrestApps/CrestApps.AgentSkills. It costs 146 tokens per session (1,865 once invoked), scanned A, original, MIT.

A guide to configuring tenant-specific CORS policies in Orchard Core. CORS, or Cross-Origin Resource Sharing, controls which other websites are allowed to call a site's browser-accessible resources.

In plain words
What is it for?
Use it to configure trusted origins, headers, methods, credentials, default policies, and exposed headers through Orchard Core settings.
Why use it?
It helps prevent overly broad browser access and avoids invalid combinations such as allowing every origin while also allowing credentials.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the orchardcore plugin — 116 skills shipped together

Good fit Use it to configure trusted origins, headers, methods, credentials, default policies, and exposed headers through Orchard Core settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/crestapps/crestapps.agentskills/orchardcore-cors
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add CrestApps/CrestApps.AgentSkills --skill orchardcore-cors
Clone the repo
git clone --depth 1 https://github.com/CrestApps/CrestApps.AgentSkills

Made for: Claude Code.

Or install orchardcore, the plugin that ships this one along with the rest of its 116 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for orchardcore-cors

README.md
[![agentmods](https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-cors/github.svg)](https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-cors)
Your own site
<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-cors"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-cors/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for orchardcore-cors

Your own site · 80×15
<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-cors"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-cors.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 146 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,865 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00146 $0.01865
Opus 5.5 $0.00058 $0.00746
Sonnet 5.5 $0.00029 $0.00373
Haiku 4.5 $0.00015 $0.00186

Measured 1mo ago against content hash c6e5b936095e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

orchardcore-cors scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -i -X OPTIONS "https://cms.example.com/api/content/abc" \
plugins/orchardcore/skills/orchardcore-cors/SKILL.md · 227 lines

How it starts

The opening of the file, as written. The whole thing — 227 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Orchard Core CORS - Prompt Templates

Configure Tenant CORS Policies

You are an Orchard Core expert. Generate secure configuration and code for the Orchard Core CORS module.

Guidelines

  • Enable the OrchardCore.Cors feature. The module has no declared feature dependencies.
  • The module calls app.UseCors() at Orchard Core's CORS pipeline order and configures ASP.NET Core CorsOptions from tenant site settings.
  • Configure policies from Settings → Security → Cross-Origin Resource Sharing. The page requires the security-critical ManageCorsSettings permission (Administrator by default).
  • Policies are tenant site settings (CorsSettings). There is no appsettings.json configuration section for CORS; use the admin UI or the settings recipe step.
  • Each CorsPolicySetting has a name, origin, header, method, credentials, default-policy, and exposed-header settings.
  • The admin rejects a policy that combines Allow credentials with Allow any origin or an AllowedOrigins entry of *. At runtime, CorsOptionsConfiguration skips a policy that has both AllowCredentials and AllowAnyOrigin (for example one imported by a recipe) and logs a warning.
  • Use exact trusted origins when credentials are allowed. Do not use wildcard origins for authenticated browser requests.
  • The first policy becomes the default if no policy is explicitly marked as default.
  • Setting changes release the tenant shell, so the CORS middleware reads the new policy configuration.
  • Enable OrchardCore.Deployment when CORS site settings must be exported by a deployment plan.
  • All recipe JSON must be wrapped in the root { "steps": [...] } format.
  • All C# classes must use the sealed modifier, except View Models.

Enabling CORS

{
  "steps": [
    {
      "name": "Feature",
      "enable": [
        "OrchardCore.Cors"
      ],
      "disable": []
    }
  ]
}

Configuring Policies in the Admin

Create a policy under Settings → Security → Cross-Origin Resource Sharing and configure:

Read the full file on GitHub · 227 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +46 lines · +5 tokens per session c6e5b936095e
  2. 3mo ago First seen · 181 lines · 141 tokens per session scan A ee42558b356c

Subscribe to this mod's changes

orchardcore-cors is a skill published in the GitHub repository CrestApps/CrestApps.AgentSkills (14 stars, last pushed 5d ago), licensed MIT. It adds 146 tokens to every session and 1,865 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

orchardcore-cors compared with skills from other repositories

orchardcore-cors next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
orchardcore-corsCrestApps/CrestApps.AgentSkillsSkill145d agoMITA146Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code