package
module
Version:
v0.0.0-...-2480b60
Opens a new window with list of versions in this module.
Published: Nov 8, 2018
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.
README
¶
gin-cors
CORS middleware for Gin.
Installation
$ go get github.com/tommy351/gin-cors
Usage
import (
"github.com/gin-gonic/gin"
"github.com/tommy351/gin-cors"
)
func main(){
g := gin.New()
g.Use(cors.Middleware(cors.Options{}))
}
Documentation
¶
Middleware sets CORS headers for every request
Options stores configurations
Source Files
¶
Click to show internal directories.
Click to hide internal directories.