Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<script src=""></script>
<input type="text" id="url"/> <button id="send">play</button>
<script type="text/javascript">
var url = $('#url').val();
url: 'http://:password@' + encodeURIComponent(url),
beforeSend: function(xhr) {
// xhr.setRequestHeader("Authorization", "Basic " + btoa(":password"));
xhr.setRequestHeader("Authorization", "Basic OnBhc3N3b3Jk";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment