forked from Open-CT/openscore
feat: support post http request method
This commit is contained in:
parent
1e5fafd57a
commit
8b9b3cf0cf
2
main.go
2
main.go
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue