我正在用next.js编写一个API路由,它将调用GitHub API并向我的用户返回GitHub的响应。我的API本质上是一个代理。然而,我在终端中的服务器正在使用Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client崩溃
我在下面的帖子中使用了代码://-------------- Get Auth Token -------------------
NameValueCollection data = new NameValueCollection();
data.Add("accountType", "GOOGLE"