Security
Tighten headers, cookies and cross-origin rules
CORS was set to allow everything to make an error go away, and it stayed that way.
- What you get
- Cross-origin access limited to your own addresses, safe cookie flags, and the standard security headers.
- Paste it into
- Your AI tool, in your project
The prompt
Check the browser-facing security settings of this project. Show me what's set today for: allowed origins (flag any wildcard, especially with credentials), cookie flags on anything that holds a session (HttpOnly, Secure, SameSite), and the response headers that limit framing, content types and where scripts can load from. Tighten them to what this app needs. List the origins that really call my API and allow only those. Add the missing headers in the one place the framework or host expects them. Introduce a content security policy in report-only mode first so nothing breaks, and tell me how to read the reports before enforcing it.
Use it
Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in.
More in Security
Check for script and database injection
User-written text is shown as HTML somewhere, or a query is built by gluing strings together.
Keep bots out of your forms and sign-ups
Fake sign-ups and contact-form spam arrive faster than real users.
Run an attacker’s-eye review before launch
The app works, and nobody has tried to misuse it yet.
Find secret keys that reach the browser
An API key sits in frontend code where anyone can open the browser tools and copy it.