Smith-Cruise / Spring-Boot-Shiro

Shiro基于SpringBoot +JWT搭建简单的restful服务
1.64k stars 504 forks source link

发起登录请求401 #50

Closed lemonade-water closed 5 years ago

lemonade-water commented 5 years ago

添加了跨域,是不是要给login请求添加白名单

Smith-Cruise commented 5 years ago

401不是跨域的原因,你是不是把登入接口也进行安全拦截了

lemonade-water commented 5 years ago

不,我给login请求添加了anon

lemonade-water commented 5 years ago

您好,现在JWTUtil.sign()方法,com/auth0/jwt/exceptions/JWTDecodeException报错,去掉JWTUtil.sign()就不报错,原因不知道,闲时求解

lemonade-water commented 5 years ago

已解决!