mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-29 21:01:27 +00:00
replace hardcoded api.puter.com with puter.APIOrigin
This commit is contained in:
@@ -321,7 +321,7 @@ window.puter = (function() {
|
||||
this.p_can_request_rao_.resolve();
|
||||
})();
|
||||
(async () => {
|
||||
const wispToken = (await (await fetch('https://api.puter.com/wisp/relay-token/create', {
|
||||
const wispToken = (await (await fetch(this.APIOrigin + '/wisp/relay-token/create', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
Authorization: `Bearer ${this.authToken}`,
|
||||
|
||||
Reference in New Issue
Block a user