cors.go 146 B

12345678910
  1. package middleware
  2. import (
  3. "github.com/gogf/gf/v2/net/ghttp"
  4. )
  5. func CORS(r *ghttp.Request) {
  6. r.Response.CORSDefault()
  7. r.Middleware.Next()
  8. }