Skip to content

A cloud-native Go microservices framework with cli tool for productivity.

License

Notifications You must be signed in to change notification settings

CockyCat/ayzy_micro

 
 

Repository files navigation

最近更新

2022-07-22

【问题】当Token鉴权失败时,返回401,跨域的处理不能统一化,不同的Http状态码都可能会存在跨域问题。

Token鉴权失败时,由直接返回Http 401状态码改为返回200,在业务层的Json输出时,使用401的状态码,通过此码来识别Token鉴权失败。

跨域时,只处理Http状态码为200的情况即可。

About

A cloud-native Go microservices framework with cli tool for productivity.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.7%
  • Other 1.3%