mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(api): 🐛 Don't require JWT cookie for static content in bull-board UI
This commit is contained in:
parent
054b8bc5cb
commit
6edb0310d8
|
|
@ -51,9 +51,9 @@ jwksRoute(plugin);
|
||||||
ssoLoginRoute(plugin);
|
ssoLoginRoute(plugin);
|
||||||
ssoLoginCallbackRoute(plugin);
|
ssoLoginCallbackRoute(plugin);
|
||||||
|
|
||||||
plugin.registerRoute("/admin/*", (app) => {
|
plugin.registerRoute("/admin/queues/api/*", (app) => {
|
||||||
// Check for JWT when accessing the admin panel
|
// Check for JWT when accessing the admin panel
|
||||||
app.use("/admin/*", async (context, next) => {
|
app.use("/admin/queues/api/*", async (context, next) => {
|
||||||
const jwtCookie = getCookie(context, "jwt");
|
const jwtCookie = getCookie(context, "jwt");
|
||||||
|
|
||||||
if (!jwtCookie) {
|
if (!jwtCookie) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue