cors

package
v0.0.0-...-4d7864a Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CORS

type CORS map[string]string

func NewCors

func NewCors() CORS

NewCors 创建一个跨域头配置

func (CORS) AllowCredentials

func (own CORS) AllowCredentials() CORS

func (CORS) AllowHeaders

func (own CORS) AllowHeaders(headers ...string) CORS

func (CORS) AllowMethods

func (own CORS) AllowMethods(methods ...string) CORS

func (CORS) AllowOrigins

func (own CORS) AllowOrigins(origins ...string) CORS

func (CORS) ExposeHeaders

func (own CORS) ExposeHeaders(headers ...string) CORS

func (CORS) SetMaxAge

func (own CORS) SetMaxAge(expire int) CORS

Jump to

Keyboard shortcuts

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