增加header key相关常量定义
This commit is contained in:
parent
8b0873f658
commit
b3f23974e5
16
header.go
Normal file
16
header.go
Normal file
@ -0,0 +1,16 @@
|
||||
// Package consts ...
|
||||
//
|
||||
// Description : consts ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2024-01-04 20:28
|
||||
package consts
|
||||
|
||||
const (
|
||||
HeaderKeyAccessControlAllowOrigin = "Access-Control-Allow-Origin" // 标识允许哪个域的请求
|
||||
HeaderKeyAccessControlAllowHeaders = "Access-Control-Allow-Headers" // 标识允许的请求header
|
||||
HeaderKeyAccessControlAllowMethods = "Access-Control-Allow-Methods" // 标识允许的请求方法
|
||||
HeaderKeyAccessControlExposeHeaders = "Access-Control-Expose-Headers" // 允许浏览器端能够获取相应的header值
|
||||
HeaderKeyAccessControlMaxAge = "Access-Control-Max-Age" // 控制发送预检请求options的频率,单位 : 秒
|
||||
)
|
Loading…
Reference in New Issue
Block a user