diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/controllers/api/oauth-clients.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/controllers/api/oauth-clients.ts b/server/controllers/api/oauth-clients.ts index b619b78a3..1899dbb02 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 | |||
26 | 26 | ||
27 | // Don't make this check if this is a test instance | 27 | // Don't make this check if this is a test instance |
28 | if (!isTestOrDevInstance() && req.get('host') !== headerHostShouldBe) { | 28 | if (!isTestOrDevInstance() && req.get('host') !== headerHostShouldBe) { |
29 | logger.info('Getting client tokens for host %s is forbidden (expected %s).', req.get('host'), headerHostShouldBe) | 29 | logger.info( |
30 | 'Getting client tokens for host %s is forbidden (expected %s).', req.get('host'), headerHostShouldBe, | ||
31 | { webserverConfig: CONFIG.WEBSERVER } | ||
32 | ) | ||
33 | |||
30 | return res.fail({ | 34 | return res.fail({ |
31 | status: HttpStatusCode.FORBIDDEN_403, | 35 | status: HttpStatusCode.FORBIDDEN_403, |
32 | message: `Getting client tokens for host ${req.get('host')} is forbidden` | 36 | message: `Getting client tokens for host ${req.get('host')} is forbidden` |