Thứ Ba, 7 tháng 9, 2021

[C#] The request was aborted: Could not create SSL/TLS secure channel

 - Create tls-ssl-settings.reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319]
"SystemDefaultTlsVersions"=dword:00000001
"SchUseStrongCrypto"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]
"SystemDefaultTlsVersions"=dword:00000001
"SchUseStrongCrypto"=dword:00000001
- Execute the reg file.
- Done.

Links:

Thứ Sáu, 6 tháng 8, 2021

[Js] Removing Service Workers Programmatically

if(window.navigator && navigator.serviceWorker) {
  navigator.serviceWorker.getRegistrations()
  .then(function(registrations) {
    for(let registration of registrations) {
      registration.unregister();
    }
  });
}
https://stackoverflow.com/questions/33704791/how-do-i-uninstall-a-service-worker