// for OPTIONS /api func (cr *DataController) Options(cx *goweb.Context) { log.Print("wat") cx.ResponseWriter.Header().Set("Access-Control-Allow-Headers", "*") cx.ResponseWriter.Header().Set("Access-Control-Allow-Methods", "GET,POST,PUT,DELETE,OPTIONS") cx.RespondWithOK() }