Skip to content

Commit

Permalink
Alllow Credentials added to CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
qrpike committed Jan 7, 2020
1 parent 32efc50 commit 220bd92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions errands-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func (s *ErrandsServer) createAPI() {
s.API = gin.Default()

CORSconfig := cors.DefaultConfig()
CORSconfig.AllowCredentials = true
CORSconfig.AllowOriginFunc = func(origin string) bool {
// fmt.Println("Connection from", origin)
return true
Expand Down

0 comments on commit 220bd92

Please sign in to comment.