简体   繁体   English

有没有办法让 JWT 签名令牌在 larave 中的刀片视图中

[英]Is there a way I can get JWT signed token to blade views in larave

By signing token using JWT I can access other routes which are restricted using JWT Middleware but When I submit my blade view forms I get 419 |通过使用 JWT 签署令牌,我可以访问使用 JWT 中间件限制的其他路由,但是当我提交刀片视图 forms 时,我得到 419 | page has expired error页面已过期错误

I suggest you to use Postman to reach your server page or API and add in header section Key: Authorization // Value: Bearer + MY_TOKEN (which you can get,by running keycloak.token() in your browser console once you are logged in)我建议您使用 Postman 访问您的服务器页面或 API 并添加 header 部分 Key: Authorization // Value: Bearer + MY_TOKEN 一旦您登录到您的控制台运行密钥(() )

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM