Added resend, fixed CSRF
This commit is contained in:
@@ -13,6 +13,13 @@ import (
|
||||
"fr.latosa-escrima/utils"
|
||||
"github.com/golang-jwt/jwt/v5"
|
||||
"github.com/google/uuid"
|
||||
"github.com/gorilla/csrf"
|
||||
)
|
||||
|
||||
var CSRFMiddleware core.Middleware = csrf.Protect(
|
||||
core.CSRF_KEY,
|
||||
csrf.Secure(os.Getenv("ENVIRONMENT") != "DEV"),
|
||||
csrf.HttpOnly(true),
|
||||
)
|
||||
|
||||
func CORS(next http.Handler) http.Handler {
|
||||
|
||||
Reference in New Issue
Block a user