allowCrossDomain

package
v0.0.0-...-77cf2aa Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowCrossDomain

type AllowCrossDomain struct {
	// 允许跨域源
	AllowOrigin string
	// 允许跨域方法 格式 GET, POST, DELETE,PUT
	AllowMethods string
	// 允许跨域请求头
	AllowHeaders string
}

AllowCrossDomain 组装一个Middleware服务,实现允许跨域请求

func (*AllowCrossDomain) LastInit

func (allow *AllowCrossDomain) LastInit(config *freefishgo.Config)

LastInit 中间件注册时调用函数进行该中间件最后的设置

func (*AllowCrossDomain) Middleware

Middleware 中间件实现允许跨域请求

Jump to

Keyboard shortcuts

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