mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Fix SSE auth by adding withCredentials for cross-origin support
This commit is contained in:
1 parent
b34bf94290
commit
887f4867ab
1 file changed
+1
-1
@@ -162,7 +162,7 @@ class SSEManager {
|
||||
if (this.eventSource) return
|
||||
|
||||
const url = this.buildUrl()
|
||||
this.eventSource = new EventSource(url)
|
||||
this.eventSource = new EventSource(url, { withCredentials: true })
|
||||
|
||||
this.eventSource.onopen = () => {
|
||||
this.isConnected = true
|
||||
|
||||
Reference in new issue
Block a user