浏览代码

companion: add todo

Ifedapo Olarewaju 6 年之前
父节点
当前提交
df5e8ed8d3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/@uppy/companion/src/server/controllers/send-token.js

+ 1 - 0
packages/@uppy/companion/src/server/controllers/send-token.js

@@ -29,6 +29,7 @@ module.exports = function sendToken (req, res, next) {
     const allowedClients = req.uppy.options.clients
     // if no preset clients then allow any client
     if (!allowedClients || hasMatch(origin, allowedClients) || hasMatch(parseUrl(origin).host, allowedClients)) {
+      // @todo do a more secure client version check, see https://www.npmjs.com/package/semver
       return res.send(clientVersion ? htmlContent(uppyAuthToken, origin) : oldHtmlContent(uppyAuthToken, origin))
     }
   }