我在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
库