.abhishek_
04/03/2023, 12:36 PMrp_st
04/03/2023, 12:39 PM.abhishek_
04/03/2023, 12:41 PMPOST
with json payload, on the backend when it receives the call the body is emptyrp_st
04/03/2023, 12:41 PM.abhishek_
04/03/2023, 12:43 PM.abhishek_
04/03/2023, 12:43 PMrp_st
04/03/2023, 12:44 PM.abhishek_
04/03/2023, 12:45 PMrp_st
04/03/2023, 12:45 PM.abhishek_
04/03/2023, 12:46 PM.abhishek_
04/03/2023, 12:53 PM.abhishek_
04/03/2023, 12:53 PMrp_st
04/03/2023, 12:53 PMrp_st
04/03/2023, 12:53 PM.abhishek_
04/03/2023, 12:53 PMrp_st
04/03/2023, 12:54 PMrp_st
04/03/2023, 12:54 PM.abhishek_
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_st
04/03/2023, 12:54 PMsattvikc
04/03/2023, 12:58 PM.abhishek_
04/03/2023, 1:07 PMsattvikc
04/03/2023, 1:08 PMsattvikc
04/03/2023, 1:10 PMSessionRequired
set to false
in the VerifySessionOptions
makes the API work as expected ?rp_st
04/03/2023, 1:20 PMrp_st
04/03/2023, 2:06 PM.abhishek_
04/03/2023, 2:25 PMAntiCsrf
to NONE
it started to work nowrp_st
04/03/2023, 2:26 PM.abhishek_
04/03/2023, 2:27 PMrp_st
04/03/2023, 2:28 PMsattvikc
04/04/2023, 4:45 AM