Spaces:
Sleeping
Sleeping
File size: 236 Bytes
931bd01 |
1 2 3 4 5 6 7 8 9 10 11 |
package middlewares
import "github.com/gin-gonic/gin"
func Cors(c *gin.Context) {
c.Header("Access-Control-Allow-Origin", "*")
c.Header("Access-Control-Allow-Methods", "*")
c.Header("Access-Control-Allow-Headers", "*")
c.Next()
}
|