Skip to content

feat: 实现 header api key 的验证#50

Closed
magiccaptain wants to merge 2 commits into36node:mainfrom
magiccaptain:feat/issue49
Closed

feat: 实现 header api key 的验证#50
magiccaptain wants to merge 2 commits into36node:mainfrom
magiccaptain:feat/issue49

Conversation

@magiccaptain
Copy link
Contributor

  1. 新增环境变量 API_KEY

  2. 除hello请求外,所有请求访问需添加 x-api-key 的header,否则返回403
    image

  3. hello 请求配置了 @public 标注

相关资料

@magiccaptain
Copy link
Contributor Author

转移到 #51

zzswang pushed a commit that referenced this pull request Jan 20, 2025
<!--
  描述在 PR 中完成的事项。
  删除这段标注 !!!!
-->

描述参考 #50 

### 相关资料

- close #49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auth 服务实现 header api key 的验证

1 participant