mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-06 21:20:27 -06:00
Networking: dont sent authentication header if puter.authToken is undefined
This commit is contained in:
@@ -30,7 +30,7 @@ export class PSocket extends EventListener {
|
||||
const { token: wispToken, server: wispServer } = (await (await fetch(puter.APIOrigin + '/wisp/relay-token/create', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
Authorization: `Bearer ${puter.authToken}`,
|
||||
Authorization: puter.authToken ? `Bearer ${puter.authToken}`:'',
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify({}),
|
||||
|
||||
Reference in New Issue
Block a user