middleware

package
v0.0.0-...-839d650 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL