Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Edited document and its local resources must have the same origin #178

Open
justinfagnani opened this issue Oct 21, 2015 · 0 comments
Open
Assignees
Labels

Comments

@justinfagnani
Copy link
Contributor

Currently the edited document is modified (to insert the editing protocol handler and to label elements) before it's injected into the iframe via a blob URL. The blob URL has it's own origin, so loading resources from file:// URLs (as in Electron) is prohibited.

To fix this we can serve all files via a small server that does the modifications before the file reaches the browser.

@justinfagnani justinfagnani self-assigned this Oct 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant