CognxSafeTrack commited on
Commit
9d2d3b2
·
1 Parent(s): 31e6d9a

Fix gateway forwarding authorization: use Bearer token instead of x-admin-key

Browse files
Files changed (1) hide show
  1. apps/api/src/routes/whatsapp.ts +1 -1
apps/api/src/routes/whatsapp.ts CHANGED
@@ -122,7 +122,7 @@ export async function whatsappRoutes(fastify: FastifyInstance) {
122
  method: 'POST',
123
  headers: {
124
  'Content-Type': 'application/json',
125
- 'x-admin-key': process.env.ADMIN_API_KEY || ''
126
  },
127
  body: request.body ? JSON.stringify(request.body) : ''
128
  }).catch(err => {
 
122
  method: 'POST',
123
  headers: {
124
  'Content-Type': 'application/json',
125
+ 'Authorization': `Bearer ${process.env.ADMIN_API_KEY || ''}`
126
  },
127
  body: request.body ? JSON.stringify(request.body) : ''
128
  }).catch(err => {