Detect browser TLS compatibility

后端 未结 5 1511
没有蜡笔的小新
没有蜡笔的小新 2021-02-01 04:08

We have a SSL website where the host has recently disabled older SSL protocols like TLS 1.0 and below. Depending on the browser, the site visitor gets a blank page or a cryptic

5条回答
  •  既然无缘
    2021-02-01 04:43

    Here is a way Create a image with jQuery, and add a src attribute, I use a button from PayPal, now all the request to PayPal must be via TSL1.2 Hope this can work

    jQuery('').on({
        load: function() {
          console.log("support TSL1.2");
        },
        error: function() {
          console.log('no support TSL1.2');
        }
    }).attr('src','https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif');
    

提交回复
热议问题