Browse Source

Add local jwt (#1047)

link 2 years ago
parent
commit
08c500c434
1 changed files with 1 additions and 1 deletions
  1. 1 1
      route/v1.go

+ 1 - 1
route/v1.go

@@ -41,7 +41,7 @@ func InitV1Router() *gin.Engine {
 	r.GET("/v1/recover/:type", v1.GetRecoverStorage)
 	v1Group := r.Group("/v1")
 
-	v1Group.Use(jwt.JWT(
+	v1Group.Use(jwt.ExceptLocalhost(
 		func() (*ecdsa.PublicKey, error) {
 			return external.GetPublicKey(config.CommonInfo.RuntimePath)
 		},