ard-work/src/main/resources/templates/preview.html
@@ -190,6 +190,9 @@ console.log("requesting ICE servers"); fetch(this.wurl, { method: 'OPTIONS', headers: { 'Referer': this.wurl, }, }) .then((res) => this.onIceServers(res)) .catch((err) => { @@ -229,6 +232,7 @@ method: 'POST', headers: { 'Content-Type': 'application/sdp', 'Referer': this.wurl, }, body: offer.sdp, }) @@ -296,7 +300,9 @@ headers: { 'Content-Type': 'application/trickle-ice-sdpfrag', 'If-Match': this.eTag, 'Referer': this.wurl, }, body: generateSdpFragment(this.offerData, candidates), }) .then((res) => {