Abhishek_
04/03/2023, 12:36 PMrp
04/03/2023, 12:39 PMAbhishek_
04/03/2023, 12:41 PMPOST
with json payload, on the backend when it receives the call the body is emptyrp
04/03/2023, 12:41 PMAbhishek_
04/03/2023, 12:43 PMrp
04/03/2023, 12:44 PMAbhishek_
04/03/2023, 12:45 PMrp
04/03/2023, 12:45 PMAbhishek_
04/03/2023, 12:46 PMrp
04/03/2023, 12:53 PMAbhishek_
04/03/2023, 12:53 PMrp
04/03/2023, 12:54 PMAbhishek_
04/03/2023, 12:54 PMfunc VerifySession(options *sessmodels.VerifySessionOptions) gin.HandlerFunc {
return func(c *gin.Context) {
session.VerifySession(options, func(rw http.ResponseWriter, r *http.Request) {
c.Request = c.Request.WithContext(r.Context())
c.Next()
})(c.Writer, c.Request)
// we call Abort so that the next handler in the chain is not called, unless we call Next explicitly
c.Abort()
}
}
rp
04/03/2023, 12:54 PMsattvikc
04/03/2023, 12:58 PMAbhishek_
04/03/2023, 1:07 PMsattvikc
04/03/2023, 1:08 PMSessionRequired
set to false
in the VerifySessionOptions
makes the API work as expected ?rp
04/03/2023, 1:20 PMAbhishek_
04/03/2023, 2:25 PMAntiCsrf
to NONE
it started to work nowrp
04/03/2023, 2:26 PMAbhishek_
04/03/2023, 2:27 PMrp
04/03/2023, 2:28 PMsattvikc
04/04/2023, 4:45 AM