@samitouri / QOSami-HFS / commits / 2a574aba

fix: Windows-only: "Add to HFS" was blocked after recent Windows update

Massimo Melina committed Dec 28, 2025 at 11:21 UTC 2a574abaf3edcdf03d7a15b1ace9aa4b3b37c40c
1 file changed +1 -1
src/api.vfs.ts
+1 -1
@@ -247,7 +247,7 @@ export default {
247 $j = [System.Text.Encoding]::UTF8.GetBytes($j);
248 [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
249 try {
250 - $res = Invoke-WebRequest -Uri '${url}/~/api/add_vfs' -Method POST -Headers @{ 'x-hfs-anti-csrf' = '1' } -ContentType 'application/json' -TimeoutSec 2 -Body $j;
250 + $res = Invoke-WebRequest -Uri '${url}/~/api/add_vfs' -UseBasicParsing -Method POST -Headers @{ 'x-hfs-anti-csrf' = '1' } -ContentType 'application/json' -TimeoutSec 2 -Body $j;
251 $json = $res.Content | ConvertFrom-Json; $link = $json.link; $link | Set-Clipboard;
252 $wsh.Popup('The link is ready to be pasted');
253 } catch { $wsh.Popup($_.Exception.Message + ' – ' + '${url}', 0, 'Error', 16); }"`)