mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
fixed code documentation
This commit is contained in:
@@ -2,9 +2,13 @@ package middleware
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
// CORS Middleware.
|
||||
//
|
||||
// Add needed headers to make cors functioning.
|
||||
/*
|
||||
CORSMiddleware
|
||||
|
||||
Add needed headers to make cors functioning.
|
||||
Args:
|
||||
*gin.Context: Gin Application Context.
|
||||
*/
|
||||
func CORSMiddleware() gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
c.Writer.Header().Set("Access-Control-Allow-Origin", "*")
|
||||
|
||||
Reference in New Issue
Block a user