فهرست منبع

exclude /_api/v3/healthcheck from basic authentication.

Koki Oyatsu 7 سال پیش
والد
کامیت
99f4964ac6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/server/crowi/express-init.js

+ 1 - 1
src/server/crowi/express-init.js

@@ -113,7 +113,7 @@ module.exports = function(crowi, app) {
     //   healthcheck endpoint exclude from basic authentication.
     //   however, hard coding is not desirable.
     //   need refactoring (ex. setting basic authentication for each routes)
-    if (req.originalUrl === '/_api/v3/healthcheck') {
+    if (req.path === '/_api/v3/healthcheck') {
       return next();
     }