cors

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package cors implements CORS middleware for the framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGorillaCors

func NewGorillaCors(cfg *corsv1.Cors) func(http.Handler) http.Handler

NewGorillaCors creates a new CORS handler for Gorilla/Mux or standard HTTP servers

func NewKratosCors

func NewKratosCors(cfg *corsv1.Cors) transhttp.FilterFunc

NewKratosCors creates a new CORS handler for Kratos HTTP servers

func NewNativeCors added in v0.2.13

func NewNativeCors(cfg *corsv1.Cors) func(http.Handler) http.Handler

NewNativeCors creates a new CORS handler for standard HTTP servers

Types

This section is empty.

Jump to

Keyboard shortcuts

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