-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
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
Issue with locally embedded file in Chrome #64
Comments
Your page is opened via |
Hey @sickill . My page is being loaded with the |
This is a limitation we can't easily overcome. I think it works in other browsers because they're less strict about security of such a setup. Basically what happens is this: player makes XHR request from a page with |
So, this is super old but I just run into this and figured out a fix using the data-uri spec to "inline" the json into the Given a
<asciinema-player src="data:application/json;base64,BASE_64_ENCODED_JSON_HERE" /> will work on local files without needing to spin up a server. |
Wanted to confirm @inakianduaga solution works (though is missing a closing quote at the end of the Thank you @inakianduaga . |
Since we can't overcome the limitation of XHR requests, and there's solution (inline, base64 src) I'm gonna close it. |
Hi, is there a fix or a workaround to locally embedded files when opening in Chrome? Chrome and Safari both throws a XMLHttprequest cross origin error. I know the work around is to use a local webserver, but that seems a bit tedious...
Thanks!
The text was updated successfully, but these errors were encountered: