mirror of
https://github.com/samanhappy/mcphub.git
synced 2026-01-11 09:07:01 -05:00
fix: update readonlyAllowPaths for correct authorization handling (#550)
This commit is contained in:
@@ -39,7 +39,7 @@ const validateBearerAuth = async (req: Request): Promise<boolean> => {
|
|||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
const readonlyAllowPaths = ['/tools/call/'];
|
const readonlyAllowPaths = ['/tools/'];
|
||||||
|
|
||||||
const checkReadonly = (req: Request): boolean => {
|
const checkReadonly = (req: Request): boolean => {
|
||||||
if (!defaultConfig.readonly) {
|
if (!defaultConfig.readonly) {
|
||||||
|
|||||||
Reference in New Issue
Block a user