System Information
- Strapi Version: v3.6.8 (community version)
- Operating System: Ubuntu server 24
- Database: PostgreSQL 14
- Node Version: v14.16.0
- NPM Version: 6.14.11
- Yarn Version: 1.22.5
My strapi installation runs under docker-compose.yaml.
Everything runs okay, but the section “API_Token” does not exist in settings section.
Regardless, I added the envs JWT_SECRET, ADMIN_JWT_SECRET, TRANSFER_TOKEN_SALT, API_TOKEN_SALT and APP_KEYS to the docker-compose file and re-run the container.
I tried to send a GET request to the URL https://strapi.mydomain.com/api/service
passing each one of these tokens above with no success. Always “forbidden” response.
My tries in Postman:
Header
key: Authorization
Value: Bearer ALL_OF_THE_TOKENS_ABOVE
Response:
{
“statusCode”: 401,
“error”: “Unauthorized”,
“message”: “Invalid token.”
}
Has anyone experienced this and solved it?