Skip to content

Commit

Permalink
docs: update qa
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Oct 22, 2023
1 parent 3d6e016 commit 8a9e12a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/server.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,12 @@ Abort more detail please refer to [Proxying to a backend server](https://angular

## Common problem

**Q:** The request may be rejected or returned directly to `401`?
**The request may be rejected or returned directly to `401`?**

Scaffolding uses the `SimpleInterceptor` interceptor of `@delon/auth` by default, which causes an error to be returned directly if a token cannot be obtained during the request.

[User Authentication](/auth) This process is a must for the middle office.

**Unable to display request log**

Starting from Angular 13, the debugging log of remote requests will no longer be displayed in the terminal. If you need to display the log, you can fix from refer to [How to fix logging for proxy in angular](https://medium.com/@gagandeep.sidhu88/how-to-fix-logging-for-proxy-in-angular-834cf46d437d).
6 changes: 5 additions & 1 deletion docs/server.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,12 @@ module.exports = {

## 常见问题

**Q:** 请求可能被拒绝或直接返回 `401` ?
**请求可能被拒绝或直接返回 `401` ?**

脚手架默认情况下使用了 `@delon/auth``SimpleInterceptor` 拦截器,导致在请求过程中若发现无法获取 Token 时会直接返回错误。

[用户认证](/auth)这个过程是中台必备的。

**关于无法显示请求日志**

从 Angular13 开始远程请求的调试日志将不再终端中显示,若有显示日期需求,可自行参考 [How to fix logging for proxy in angular](https://medium.com/@gagandeep.sidhu88/how-to-fix-logging-for-proxy-in-angular-834cf46d437d) 解决。

0 comments on commit 8a9e12a

Please sign in to comment.