We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
类似这样:
Request Headers authorization:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzc28uY29vbCIsImlhdCI6MTYxMTA1MDY1OSwiZGF0YSI6eyJ1c2VyaWQiOjF9LCJzY29wZXMiOiJyb2xlX2FjY2VzcyIsImV4cCI6MTYxMTA1Nzg1OX0.c8qvPS1lHrk6GuCnU2a4XUnThuzkoowKH2nKCZZE7Vk
现在在做统一登录,登陆后将token放到请求头,老师能给个思路吗?
The text was updated successfully, but these errors were encountered:
Biny 的Request Headers 中cookie是通过什么模块写进去的?
Sorry, something went wrong.
你是说cookie吗?wiki里有说明 登录态你也可以用session实现 也可以自定义cookie实现 cookie的获取和设置都是在App::$base->request中完成的,分别提供了getCookie和setCookie方法
如果是请求带上非cookie的header的话 是需要前端组装请求时带上的 php有原生函数 get_headers 来获取用户提交的header数据 不过登录态的话session或者cookie就足够了
No branches or pull requests
类似这样:
Request Headers
authorization:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzc28uY29vbCIsImlhdCI6MTYxMTA1MDY1OSwiZGF0YSI6eyJ1c2VyaWQiOjF9LCJzY29wZXMiOiJyb2xlX2FjY2VzcyIsImV4cCI6MTYxMTA1Nzg1OX0.c8qvPS1lHrk6GuCnU2a4XUnThuzkoowKH2nKCZZE7Vk
现在在做统一登录,登陆后将token放到请求头,老师能给个思路吗?
The text was updated successfully, but these errors were encountered: