Skip to content

Commit

Permalink
api: allow any origin for CORS (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
worm-emoji authored Sep 23, 2022
1 parent 3298d38 commit d48e6d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ func (s *Server) Handler(env, gitSha string) http.Handler {
}

c := cors.New(cors.Options{
AllowedOrigins: []string{"http://localhost:3000"},
AllowCredentials: true,
AllowedOrigins: []string{"*"},
AllowCredentials: false,
OptionsPassthrough: false,
})

h = c.Handler(h)
Expand Down

1 comment on commit d48e6d7

@vercel
Copy link

@vercel vercel bot commented on d48e6d7 Sep 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lanyard – ./

lanyard-git-main.context.wtf
allowlist.context.wtf
lanyard.context.wtf

Please sign in to comment.