Skip to content

Commit

Permalink
Merge pull request #55 from aerogear/enable-web-api
Browse files Browse the repository at this point in the history
Enable cors requests
  • Loading branch information
wtrocki committed May 8, 2018
2 parents 574de45 + 0ebba52 commit f2dd0e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion cmd/metrics-api/metrics-api.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ func main() {

// allow CORS for localhost
handler := cors.New(cors.Options{
AllowedOrigins: []string{"http://localhost:8080"},
AllowCredentials: true,
}).Handler(router)

Expand Down
1 change: 0 additions & 1 deletion pkg/web/metricsHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,5 @@ func (mh *metricsHandler) CreateMetric(w http.ResponseWriter, r *http.Request) {
boom.BadImplementation(w)
return
}

w.WriteHeader(204)
}

0 comments on commit f2dd0e9

Please sign in to comment.