package
Version:
v0.5.2
Opens a new window with list of versions in this module.
Published: May 12, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GetAllowedOrigins 获取配置的允许源列表(用于日志等场景)
IsEnabled 检查 CORS 配置是否启用(用于日志等场景)
Middleware 创建 CORS 中间件,直接接受 conf.CORS 配置
如果 corsConfig 为 nil 或 Enable 为 false,返回透传中间件
Source Files
¶
Click to show internal directories.
Click to hide internal directories.