Change logic to judge browser which support CSP nounce-source