chore(templates): remove console.log that logs payload secret for security (#10095)
I noticed that payload.secret was getting logged via console.log, adding a significant security risk. Removed the console.log statements from three preview/route.ts files.
This commit is contained in:
committed by
GitHub
parent
a501e604d6
commit
dec87e971a
@@ -53,7 +53,6 @@ export async function GET(
|
||||
headers: req.headers,
|
||||
})
|
||||
} catch (error) {
|
||||
console.log({ token, payloadSecret: payload.secret })
|
||||
payload.logger.error({ err: error }, 'Error verifying token for live preview')
|
||||
return new Response('You are not allowed to preview this page', { status: 403 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user