Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: var endpoint = 'http://user:password@my.domain.com/file/path/file.ext'; $.ajax({ url: endpoint, type: 'GET', async: false, username: 'user', password: 'password', success: function(result, status, xhr) { //something if it works }, error() { //something if it doesn't work } }); Detected 1 occurrence(s) of ‘[ht|f]tp[s]*:\/\/\w+\:.*\@\w*\.\w*’: var endpoint = 'http://user:password@my.domain.com/file/path/file.ext'; $.ajax({ url: endpoint, type: 'GET', async: false, […]
↧