Lock Down a Strapi API with Roles and API Tokens
- Go to Settings → API Tokens → Create new API Token.
- Choose Custom, and tick only
findandfindOneon the types you need. - Send it from your server, never the browser:
curl -H "Authorization: Bearer $STRAPI_TOKEN" http://localhost:1337/api/recipes
Top comments (0)