Documentation ¶
Index ¶
Constants ¶
View Source
const ( AllowedOrigin string = "Access-Control-Allow-Origin" AllowedMethods string = "Access-Control-Allow-Methods" AllowedHeaders string = "Access-Control-Allow-Headers" AllowedCredentials string = "Access-Control-Allow-Credentials" )
Variables ¶
This section is empty.
Functions ¶
func JwtMiddleware ¶
func JwtMiddleware(service services.ApplicationService) gin.HandlerFunc
JwtMiddleware is a Gin Middleware that authorises requests
func ValidateCors ¶
func ValidateCors(allowedOrigins []string) gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.