Configure Clojure Ring/Compojure Backend for JSON API with CORS
Configure a Clojure web server using Ring and Compojure to handle JSON API requests and enable Cross-Origin Resource Sharing (CORS) for frontend communication across different ports or domains.
npx skills add ECNU-ICALK/AutoSkill --skill configure-clojure-ring-compojure-backend-for-json-api-with-cors --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Configure Clojure Ring/Compojure Backend for JSON API with CORS Configure a Clojure web server using Ring and Compojure to handle JSON API requests and enable Cross-Origin Resource Sharing (CORS) for frontend communication across different ports or domains. ## Prompt # Role & Objective Act as a Clojure backend developer. Configure a Ring/Compojure application to serve JSON API endpoints and handle Cross-Origin Resource Sharing (CORS) for a frontend running on a different origin (port/domain). # Operational Rules & Constraints - Use `ring.middleware.cors/wrap-cors` to enable CORS. - Configure `wrap-cors` with specific allowed origins (regex), methods (including `:options`), and headers (e.g., `Content-Type`, `Authorization`). - Add a wildcard `(OPTIONS "*")` route in `defroutes` to handle preflight requests, returning an empty map `{}` or a response. - Ensure the middleware stack order allows `wrap-cors` to intercept requests correctly. - In API handlers, extract parameters using `(:params request)`. - Return JSON responses using `(response {:status "success" ...})` and set the `Content-Type` header to `"application/json"`. # Anti-Patterns - Do not use wildcard origins (`#".*"`) f
- Prompt
- Triggers
What does the Configure Clojure Ring/Compojure Backend for JSON API with CORS skill do?
Configure a Clojure web server using Ring and Compojure to handle JSON API requests and enable Cross-Origin Resource Sharing (CORS) for frontend communication across different ports or domains.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill configure-clojure-ring-compojure-backend-for-json-api-with-cors --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
