middlewares

package
v0.0.0-...-b88b802 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GuardMiddleware

func GuardMiddleware(next echo.HandlerFunc) echo.HandlerFunc

func OriginInspectSkipper

func OriginInspectSkipper(context echo.Context) bool

OriginInspectSkipper verifies the request context and skip the origin verification. It's useful to allow access for any origin when a route (e.g. public images routes) should be accessed by anyone.

func VerifyOrigin

func VerifyOrigin(origin string) (bool, error)

VerifyOrigin verifies if the request origin is included on the defined server allowed hosts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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