微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

发布请求正在阻止获取请求 nodejs

如何解决发布请求正在阻止获取请求 nodejs

我正在尝试为我的 Neo4j 数据库添加和验证用户模型,但是我在实现它时遇到了问题。 我已经构建了一个 nodejs web-app 来管理这个 Neo4j-database 的数据,它可以正常工作,但在为身份验证用户实现 .post 请求时,以下 web-app get 请求崩溃了,没有获取数据和我的索引。 js 显示变量为空。我认为,这是由于对 get 请求的封锁造成的。

你能帮我并给我一个提示吗? 谢谢你。 这是 index.j 中显示错误

    76|     </thead>

    77|     <tbody>

 >> 78|      <% variables.forEach(function(variable){ %>

    79|       <tr class="table-warning">

    80|         <th scope="row"><%= variable.id %></th>

    81|         <td>


variables is not defined
    at eval (C:\Users\ILC\Desktop\EuQu\views\index.ejs:38:8)
    at index (C:\Users\ILC\Desktop\EuQu\node_modules\ejs\lib\ejs.js:682:17)
    at tryHandleCache (C:\Users\ILC\Desktop\EuQu\node_modules\ejs\lib\ejs.js:254:36)
    at View.exports.renderFile [as engine] (C:\Users\ILC\Desktop\EuQu\node_modules\ejs\lib\ejs.js:485:10)
    at View.render (C:\Users\ILC\Desktop\EuQu\node_modules\express\lib\view.js:135:8)
    at tryRender (C:\Users\ILC\Desktop\EuQu\node_modules\express\lib\application.js:640:10)
    at Function.render (C:\Users\ILC\Desktop\EuQu\node_modules\express\lib\application.js:592:3)
    at ServerResponse.render (C:\Users\ILC\Desktop\EuQu\node_modules\express\lib\response.js:1012:7)
    at C:\Users\ILC\Desktop\EuQu\app.js:52:13
    at processticksAndRejections (internal/process/task_queues.js:93:5)

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。