From cbdb80165591e0d1c836de0d6ad9eca49d3aea18 Mon Sep 17 00:00:00 2001 From: echo Date: Sat, 28 Feb 2026 17:46:59 +0100 Subject: [PATCH] fix: disable Authorization header for Strapi public API access - Modify getHeaders() to always return empty object - Prevents sending invalid Bearer token that causes 401 errors - Strapi Public role permissions configured for unauthenticated access - Will allow proper article sync from Strapi to backend --- backend/src/modules/strapi.service.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/backend/src/modules/strapi.service.ts b/backend/src/modules/strapi.service.ts index ee279cb..b6285da 100644 --- a/backend/src/modules/strapi.service.ts +++ b/backend/src/modules/strapi.service.ts @@ -106,12 +106,8 @@ export class StrapiService { } private getHeaders() { - // Only include Authorization header if token is set - if (this.strapiApiToken) { - return { - Authorization: `Bearer ${this.strapiApiToken}`, - }; - } + // Use public API access - no authentication needed + // Strapi Public role has been configured to allow article access return {}; }