Skip to content

Commit

Permalink
change cors proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
egzumer committed Oct 6, 2023
1 parent 5a0caae commit 160d50a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions js/tool_patcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ function loadFirmwareFromUrl(theUrl)
{
document.getElementById('console').value = "";
log("Loading file from url: "+ theUrl+'\n')
fetch('https://api.codetabs.com/v1/proxy?quest=' + theUrl, {
// headers: {
// 'Access-Control-Allow-Origin':'*'
// 'x-cors-api-key': 'temp_2f1bf656ef75047798830d7dbbc09bd6'
// }
})
let res = null;

fetch('https://corsproxy.egzi.ovh/' + theUrl).catch(err => {
return fetch('https://api.codetabs.com/v1/proxy?quest=' + theUrl);
})
.then(res => {
if (res.ok) {
return res.arrayBuffer();
Expand Down

0 comments on commit 160d50a

Please sign in to comment.