diff --git a/apps/cron/src/index.ts b/apps/cron/src/index.ts index 80a6c4ad..0f268c82 100644 --- a/apps/cron/src/index.ts +++ b/apps/cron/src/index.ts @@ -10,7 +10,11 @@ const IPAM_RECONCILE_PATH = '/api/internal/ipam/reconcile'; async function runInternalCronRoute(env: Env, path: string, label: string): Promise { const response = await env.DASHBOARD.fetch(`https://dashboard.internal${path}`, { method: 'POST', - headers: { authorization: `Bearer ${env.INTERNAL_CRON_SECRET}` } + headers: { + authorization: `Bearer ${env.INTERNAL_CRON_SECRET}`, + 'content-type': 'application/json' + }, + body: '{}' }); const body = await response.text();