ActivityPub-federated video streaming platform using P2P directly in your web browser
Add more logs to debug oauth-client error
Chocobozzz89b9eab5a72f
diff --git a/server/controllers/api/oauth-clients.ts b/server/controllers/api/oauth-clients.tsindex b619b78a39..1899dbb025 100644--- a/server/controllers/api/oauth-clients.ts+++ b/server/controllers/api/oauth-clients.ts@@ -26,7 +26,11 @@ async function getLocalClient (req: express.Request, res: express.Response, next// Don't make this check if this is a test instanceif (!isTestOrDevInstance() && req.get('host') !== headerHostShouldBe) {- logger.info('Getting client tokens for host %s is forbidden (expected %s).', req.get('host'), headerHostShouldBe)+ logger.info(+ 'Getting client tokens for host %s is forbidden (expected %s).', req.get('host'), headerHostShouldBe,+ { webserverConfig: CONFIG.WEBSERVER }+ )+return res.fail({status: HttpStatusCode.FORBIDDEN_403,message: `Getting client tokens for host ${req.get('host')} is forbidden`