1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-18 00:19:49 +01:00

Fix/backport bearer token fix (#7067)

## About the changes
Backport of https://github.com/Unleash/unleash/pull/7065 to 5.12 branch
This commit is contained in:
Gastón Fournier 2024-05-16 12:03:53 +02:00 committed by GitHub
parent c3d21173a8
commit aaa8202b48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);