hsts 已弃用 "includeSubdomain" 参数已弃用

hsts deprecated The "includeSubdomain" paramter is deprecated

我有一个环回 3 应用程序。当我使用 . node 启动应用程序时,我在我的控制台中得到了这个。

hsts deprecated The "includeSubdomain" parameter is deprecated. Use "includeSubDomains" (with a capital D) instead. node_modules/loopback/lib/server-app.js:74:25

我在 node_modules 文件夹中搜索,但没有环回文件夹。那么我该如何解决这个问题?

我也有同样的错误, 但是只要查看 PM2 日志就可以看到。

您是将 Loopback 与 PM2 一起使用还是在 Docker 容器内使用?

我 运行 "NODE . "

没有这个错误

这是由于 middleware.json 中的 helmet 配置所致。打开它,然后找到并替换 includeSubdomainincludeSubDomains.