主机名/ IP与证书的替代名称不匹配:主机:localhost。不在证书的替代名称中:DNS:*。herokuapp.com,DNS:herokuapp.com

时间:2020-06-13 09:28:57

标签: node.js express heroku session-cookies next.js

我在Heroku上创建并托管了一个api。我的Web应用程序在localhost上运行。我正在为我的应用程序使用NextJS。我可以通过运行在localhost上的Web应用程序访问Heroku上托管的所有api。我有一个用于检查Cookie是否可用的api,我在getInitialProps应用的_app.js文件的NextJS文件的Hostname/IP does not match certificate's altnames: Host: localhost. is not in the cert's altnames: DNS:*.herokuapp.com, DNS:herokuapp.com 方法中调用该api,框架。如果我评论该api调用代码,那么我不会收到任何错误,但是我需要检查cookie是否存在,因此调用该代码会给出错误提示

cookie

登录时,我的postman也没有保存在浏览器中。它可以在app.set("trust proxy", true); 上正常工作,因此从我的api方面没问题,我可以在邮递员中看到cookie。 我确实在我的NodeJS应用中设置了以下内容

cookie-session

我正在express Nodejs应用中使用%5|1591739081.630|REQTMOUT|rdkafka#consumer-1| [thrd:GroupCoordinator]: GroupCoordinator/290: Timed out HeartbeatRequest in flight (after 10622ms, timeout #0) %4|1591739081.630|REQTMOUT|rdkafka#consumer-1| [thrd:GroupCoordinator]: GroupCoordinator/290: Timed out 1 in-flight, 0 retry-queued, 0 out-queue, 0 partially-sent requests %4|1591739094.726|METADATA|rdkafka#consumer-1| [thrd:main]: GroupCoordinator/289: Metadata request failed: partition assignor: Local: Broker node update (-336618544ms): Permanent

0 个答案:

没有答案