diff --git a/index.html b/index.html index 29fd168..71be833 100644 --- a/index.html +++ b/index.html @@ -1,34 +1,72 @@ - - - - - - X-Frame-Bypass Web Component Demo - - - - - - - Fork me on GitHub - + + + Chainflare Embed + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/x-frame-bypass.js b/x-frame-bypass.js index b97b477..e73cde6 100644 --- a/x-frame-bypass.js +++ b/x-frame-bypass.js @@ -69,9 +69,10 @@ customElements.define('x-frame-bypass', class extends HTMLIFrameElement { } fetchProxy (url, options, i) { const proxies = (options || {}).proxies || [ - 'https://cors-anywhere.herokuapp.com/', - 'https://yacdn.org/proxy/', - 'https://api.codetabs.com/v1/proxy/?quest=' + // by default use a CORS proxy to bypass X-Frame-Options DENY/ALLOWALL + 'https://api.allorigins.win/raw?url=', + // Proxy alternatives i.e. my test'https://go.kinkyl.ink/raw?url=', + // More ... ] return fetch(proxies[i] + url, options).then(res => { if (!res.ok)