...
|
...
|
@@ -25,7 +25,7 @@ func (this *BaseController) Prepare() { |
|
|
if this.Ctx.Input.Method() == "OPTIONS" {
|
|
|
this.Ctx.ResponseWriter.WriteHeader(204)
|
|
|
this.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE")
|
|
|
//this.Ctx.WriteString("")
|
|
|
this.Ctx.WriteString("")
|
|
|
return
|
|
|
}
|
|
|
p := this.Ctx.Input.GetData("RouterPattern")
|
...
|
...
|
|