feat: support post http request method

This commit is contained in:
David 2021-07-28 22:59:35 +08:00
parent 1e5fafd57a
commit 8b9b3cf0cf
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ import (
func main() {
beego.InsertFilter("*", beego.BeforeRouter, cors.Allow(&cors.Options{
AllowOrigins: []string{"*"},
AllowMethods: []string{"GET", "PUT", "PATCH"},
AllowMethods: []string{"GET", "PUT", "PATCH", "POST"},
AllowHeaders: []string{"Origin"},
ExposeHeaders: []string{"Content-Length"},
AllowCredentials: true,