We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
maybe it needs an additional option, but:
<iframe is="x-frame-bypass" src="https://api.allorigins.win/raw?url=${url}"></iframe>
url = "https://example.com/demo.html"
/example/bar.html
https://api.allorigins.win/raw?url=https://example.com/example/bar.html
Is that something that could be added?
The text was updated successfully, but these errors were encountered:
just checked the source code - it's in fact not re-written at all, but instead that's just how the relative link works :-)
maybe something that would be useful to allow more freedom is to add postMessage interface to the iframe, like:
window.callbacks = {} var counter = 0 onmessage = ({ data: code }) => { const id = counter++ parent.postMessage(JSON.stringify({ type: 'start', id, data: code }) new Promise((resolve, reject) => { window.callbacks[id] = { resolve, reject } }).then(result => { parent.postMessage(JSON.stringify({ type: 'result', id, data: result }) }).catch(error => { error.stack parent.postMessage(JSON.stringify({ type: 'error', id, data: error }) }) const source = `;(async (id, result) { try { const { resolve } = window.callbacks[id]; ${code}; resolve(result) } catch (error) { const { reject } = window.callbacks[id] reject(error) } })(${id})` eval(source) }
So a user can then scrape the page and interact properly with it.
Sorry, something went wrong.
No branches or pull requests
maybe it needs an additional option, but:
<iframe is="x-frame-bypass" src="https://api.allorigins.win/raw?url=${url}"></iframe>
url = "https://example.com/demo.html"
/example/bar.html
https://api.allorigins.win/raw?url=https://example.com/example/bar.html
Is that something that could be added?
The text was updated successfully, but these errors were encountered: