【发布时间】:2020-03-02 16:40:12
【问题描述】:
我想在可通过 localhost:8080/public/ 访问的页面上列出名为 google-results 的特定实体的每条记录
我已将 /entities/google-results/google-result.tsx 中的 tsx 文件复制到 /modules/public/home.tsx 中,我创建了一条新路由并将其绑定到该组件。
它编译成功,但是当我点击 localhost/public 时,javascript 控制台显示:
加载资源失败:服务器响应状态为 401 (未经授权)
解决这个问题的最佳方法是什么?
【问题讨论】:
-
您是如何在服务器上为这个新的 API 端点配置安全性的?看起来你没有禁用它的授权,检查 SecurityConfiguration.java
-
成功了,谢谢。我用这个问题作为参考:stackoverflow.com/questions/51026694/…
标签: reactjs authentication jhipster