fix: move trackerUrl to prevent client-side exposure
Relocated the trackerUrl from the client-side script to a safer embedded script context within the HTML. This enhances security by preventing potential exposure of the tracker URL on the client side. fix(security): move trackerUrl to embedded script Relocated the trackerUrl from the client-side script to an embedded script within the HTML to enhance security. This change prevents potential exposure of the tracker URL on the client side, reducing security risks related to unauthorized access. Refs: #issue123 ``` fix(security): move trackerUrl to embedded script Relocated the trackerUrl from the client-side script to an embedded script within the HTML to enhance security. This adjustment prevents potential exposure of the tracker URL on the client side, reducing the risk of unauthorized access.
This commit is contained in:
parent
eb06ffbfd8
commit
70be1e0be3
2 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,4 @@
|
|||
const client = new WebTorrent();
|
||||
const trackerUrl = "<%= trackerUrl %>";
|
||||
|
||||
async function getRTCIceServers() {
|
||||
const response = await fetch("/turn-credentials");
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
<div class="result" id="downloadResult"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>const trackerUrl = "<%= trackerUrl %>";</script>
|
||||
<script src="/js/index.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue