فهرست منبع

fix appsiteurl crowi type

yusa-a 9 ماه پیش
والد
کامیت
fd83f2a3ec
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      apps/app/src/server/middlewares/certify-origin.ts

+ 1 - 1
apps/app/src/server/middlewares/certify-origin.ts

@@ -12,7 +12,7 @@ type Apiv3ErrFunction = (error: ErrorV3) => void;
 
 
 const certifyOrigin = (crowi: Crowi): ((req: AccessTokenParserReq, res: Response & { apiv3Err: Apiv3ErrFunction }, next: NextFunction) => void) => {
 const certifyOrigin = (crowi: Crowi): ((req: AccessTokenParserReq, res: Response & { apiv3Err: Apiv3ErrFunction }, next: NextFunction) => void) => {
 
 
-  const appSiteUrl = crowi.configManager?.getConfig('crowi', 'app:siteUrl');
+  const appSiteUrl = crowi.configManager?.getConfig('app:siteUrl');
   return (req: AccessTokenParserReq, res: Response & { apiv3Err }, next: NextFunction): void => {
   return (req: AccessTokenParserReq, res: Response & { apiv3Err }, next: NextFunction): void => {
 
 
     const isSameOriginReq = req.headers.origin == null || req.headers.origin === appSiteUrl;
     const isSameOriginReq = req.headers.origin == null || req.headers.origin === appSiteUrl;