Added access control
This commit is contained in:
parent
ae610c9e9d
commit
f05be0f71c
@ -60,6 +60,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.Post("/graphql", func(ctx *aero.Context) string {
|
app.Post("/graphql", func(ctx *aero.Context) string {
|
||||||
|
ctx.Response().Header().Set("Access-Control-Allow-Origin", "*")
|
||||||
body, err := ctx.Request().Body().JSONObject()
|
body, err := ctx.Request().Body().JSONObject()
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user