Skip to content

Commit 19ad19b

Browse files
committed
fix: log streams not working on prodcution when deployed
1 parent a835b21 commit 19ad19b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/api/logs.go

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ func LiveLogs(c *fiber.Ctx) error {
2525
c.Set("Cache-Control", "no-cache")
2626
c.Set("Connection", "keep-alive")
2727
c.Set("Transfer-Encoding", "chunked")
28+
c.Set("Access-Control-Allow-Origin", "*")
29+
c.Set("Access-Control-Allow-Headers", "Content-Type")
2830
c.Status(http.StatusOK)
2931

3032
logsStream := make(chan []byte)

0 commit comments

Comments
 (0)