Skip to content

Commit

Permalink
fix: apply cors for all endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Adventune authored Apr 15, 2024
1 parent 6047f0b commit 783f383
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ui/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ func main() {

downloadExecutable()

app.Get("/", handlers.Index)

app.Use(cors.New())


app.Get("/", handlers.Index)
app.Post("/validate", handlers.Validate)

app.Static("/", "./static")
Expand Down

0 comments on commit 783f383

Please sign in to comment.