Skip to content

Commit

Permalink
Updating the CORS options
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonvfx committed Dec 9, 2015
1 parent f8c6c1e commit 1ec0256
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ func main() {
config := newClientConfig(Version, c.String("shotgun-host"))

r := router(config)
corsMiddleware := cors.Default()
corsMiddleware := cors.New(cors.Options{
AllowedOrigins: []string{"*"},
AllowCredentials: true,
AllowedHeaders: []string{"Authorization"},
})

n := negroni.Classic()
n.Use(negronilogrus.NewMiddleware())
Expand Down

0 comments on commit 1ec0256

Please sign in to comment.