Added access control

This commit is contained in:
Eduard Urbach 2018-04-08 17:33:51 +02:00
parent ae610c9e9d
commit f05be0f71c

View File

@ -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 {