CORS

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prepare added in v0.0.2

func Prepare(configuration CORSConfiguration) innerCORS

Types

type CORSConfiguration

type CORSConfiguration struct {
	Origins          []string  `json:"origins"`
	ExposeHeaders    *[]string `json:"expose_headers"`
	AllowMethods     *[]string `json:"allow_methods"`
	AllowHeaders     *[]string `json:"allow_headers"`
	AllowCredentials *bool     `json:"allow_credentials"`
	MaxAge           *int      `json:"max_age"`
}

Jump to

Keyboard shortcuts

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