<script>
$(function() {
$('form').submit(function() {
event.preventDefault();
$(this).parent().html('<iframe src="'+$('#inputUrl').val()+'"></iframe>');
});
});
</script>
base64 = 'data:image/gif;base64,R0lGODlhDQAMANUAAFRVVtHd74S192aZzHqVuLq0rvf39+zr6bXI4qizwufdz5WhsmSt/5rC+r3Ezm1zeJiSjmum8tzm9bvZ/6bB5a6qpn+t5dvVzZK88+v8/7vg/7DJ4P/99V5gY8zMzObm5ofD/6zQ/3Fua8fX69fm+vDy9OPi4czh/4SXrJLC/////+7u7Wmt/87f9oG2/5Oku5mZmf///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAUUADEALAAAAAANAAwAAAZTwJhwSIwhDsUixZEkWhLNYeQVjYUYBIVKSCKeGIOCymCISTATISsCu5RKW1VAkHKBUBDToRxTcUYNGhsdFR8GW0IqJS0ZDyIrh0kqCwBIVR4eTUEAOw==';
blob = await (await fetch(base64)).blob();
headers = new Proxy(new Headers({
'Content-Type': 'text/plain'
}), {
get(target, prop) {
return target.get(prop);
},
set(target, prop, val) {
return target.set(prop, val);
}
});
console.log(headers['coNtent-typE']);