cors

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 8 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 NewCorsFactory

func NewCorsFactory() middleware.Factory

NewCorsFactory creates a new CORS middleware factory

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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