From f05be0f71c9ba3497b9f815e4a5347417637772d Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 8 Apr 2018 17:33:51 +0200 Subject: [PATCH] Added access control --- graphql.go | 1 + 1 file changed, 1 insertion(+) diff --git a/graphql.go b/graphql.go index c582a93b..fa4c206f 100644 --- a/graphql.go +++ b/graphql.go @@ -60,6 +60,7 @@ func init() { } app.Post("/graphql", func(ctx *aero.Context) string { + ctx.Response().Header().Set("Access-Control-Allow-Origin", "*") body, err := ctx.Request().Body().JSONObject() if err != nil {