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:
parent
c3d21173a8
commit
aaa8202b48
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user