cors

package
v2.44.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSMiddleware

func CORSMiddleware(config CORSConfig) echo.MiddlewareFunc

CORSMiddleware creates a performant CORS middleware that dynamically handles unsafe allow all origins configuration

Types

type CORSConfig

type CORSConfig struct {
	AllowHeaders     []string
	AllowCredentials bool
	ConfigProvider   config.ConfigProvider
}

CORSConfig holds the configuration for CORS middleware

Jump to

Keyboard shortcuts

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