Skip to content

Commit

Permalink
Merge pull request #84 from meltred/logs
Browse files Browse the repository at this point in the history
fix: log streams not working on production when deployed
  • Loading branch information
KunalSin9h committed Jan 27, 2024
2 parents a835b21 + 0e52b70 commit 14ccc8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/api/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ func LiveLogs(c *fiber.Ctx) error {
c.Set("Cache-Control", "no-cache")
c.Set("Connection", "keep-alive")
c.Set("Transfer-Encoding", "chunked")
c.Set("Access-Control-Allow-Origin", "*")
c.Set("Access-Control-Allow-Headers", "Content-Type")
c.Status(http.StatusOK)

logsStream := make(chan []byte)
Expand Down

0 comments on commit 14ccc8e

Please sign in to comment.