Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Configure CORS with the right headers and origins v1.0.0

Use this resource to configure cross-origin resource sharing with headers and allowed origins

New

  • 340 downloads
  • 226 likes
  • 236 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install cors-policy-setup

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent configures CORS for Express, Next.js or Fastify: response headers, OPTIONS preflight handling, credentials and the list of allowed origins, with dynamic validation when needed. It applies cautious security rules. You get a configuration to test from your front end.

Mostly picked by

Updated November 2, 2026

Card for the “Configure CORS with the right headers and origins” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: reference CORS headers and an Express middleware
  • SKILL.md: Next.js and Fastify configuration and dynamic origin validation

Good fit for

  • Your front end calls the API from another domain and the browser blocks the requests
  • A request with credentials fails because of CORS

Not for

    Tags

    • cors
    • api
    • headers
    • browser

    About

    You say

    “Configure CORS so my front end on app.example.com can call the API with cookies.”

    Card for the “Configure CORS with the right headers and origins” skill

    Skill published by patricio0312rev under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to configure cross-origin resource sharing with headers and allowed origins
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • SKILL.md14.1 KB

    Origin and licence

    Listed unmodified

    Author
    patricio0312rev
    Source
    github.com/patricio0312rev/skills/tree/79ea6af485698b31060b63f0066f712560757b29/security/cors-configuration
    Licence
    MIT

    Notice

    « cors-configuration » (patricio0312rev, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.