Strapi security configuration

Specific Strapi security settings to review before go-live: CORS, security headers, admin access, rate limits, token scopes, secrets, public permissions, uploads and telemetry.

Configuring CORS for a Strapi API

Replacing Strapi's permissive default CORS with explicit origins, methods and headers, handling preview and admin origins, and testing that front ends still work.

Login rate limiting in Strapi

How Strapi rate-limits admin and end-user authentication, changing intervals and limits, and moving the store to Redis so limits hold across several instances.

Strapi API token scopes and rotation

Choosing read-only, full access or custom tokens, durations, encrypted viewing, rotating long-lived tokens and keeping Content API and Admin tokens apart.

Managing Strapi secrets and keys

Generating and storing APP_KEYS, JWT secrets and token salts per environment, loading them from a secrets manager, and the impact of rotating each one.

Reviewing Strapi public role permissions

Auditing what unauthenticated visitors can read or write through the Users & Permissions Public role, common exposure mistakes, and testing the API as an anonymous user.

Restricting file uploads in Strapi

Limiting upload size and handling in Strapi: the sizeLimit setting, body parser limits, who can upload, and storing files outside the application server.

Disabling Strapi telemetry

What usage data Strapi sends, how to opt out with the CLI or a package.json flag, and checking outbound traffic for networks that must not call home.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.