Skip to content

Commit

Permalink
Fix/backport bearer token fix (#7067)
Browse files Browse the repository at this point in the history
## About the changes
Backport of #7065 to 5.12 branch
  • Loading branch information
gastonfournier authored May 16, 2024
1 parent c3d2117 commit aaa8202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default async function getApp(

app.use(requestLogger(config));

app.use('/api', bearerTokenMiddleware(config)); // We only need bearer token compatibility on /api paths.
app.use(`${baseUriPath}/api`, bearerTokenMiddleware(config)); // We only need bearer token compatibility on /api paths.

if (typeof config.preHook === 'function') {
config.preHook(app, config, services, db);
Expand Down

0 comments on commit aaa8202

Please sign in to comment.