Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tokenAuth.go 在处理敏感数据时,请仔细评估并确保适当的安全性 #563

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Dec 26, 2023

  1. Update tokenAuth.go 在处理敏感数据时,请仔细评估并确保适当的安全性

    通过将用户名或其他标识信息放置在响应头部分,可能调试和故障排除过程中可能会有帮助,可以快速识别请求所属的用户。
    
    但是:
    通常情况下,不建议将敏感的用户信息直接暴露在响应头中,因为响应头可以被轻易地查看和获取。
    
    由于 HTTP 响应头字段是公开的,因此请确保不要在这些字段中包含敏感信息。如果用户信息包含敏感数据,最好将其存储在响应体中
    
    在处理敏感数据时,请仔细评估并确保适当的安全性
    shepf committed Dec 26, 2023
    Configuration menu
    Copy the full SHA
    b8c7dd6 View commit details
    Browse the repository at this point in the history