Skip to content
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

Can I get a browser REPL without running a HTTP server? #26

Closed
iwinux opened this issue Nov 6, 2013 · 1 comment
Closed

Can I get a browser REPL without running a HTTP server? #26

iwinux opened this issue Nov 6, 2013 · 1 comment

Comments

@iwinux
Copy link

iwinux commented Nov 6, 2013

What I wonder is, once I get a running REPL by

(def repl-env (reset! cemerick.austin.repls/browser-repl-env (cemerick.austin/repl-env)))

can I connect to it in a file:/// plain HTML page?

So far what I got is:

Blocked a frame with origin "http://localhost:60473" from accessing a frame with origin "null". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "file". Protocols must match.

Any idea how to get around this annoying same-origin policy?

@cemerick
Copy link
Owner

cemerick commented Nov 6, 2013

Nope, no idea. AFAIK, that policy is effectively non-negotiable. Maybe there's a browser-internal setting you can twiddle, but that's likely a very bad idea for your security generally. A better place to ask might be the ClojureScript ML, someone there might have an idea?

@cemerick cemerick closed this as completed Nov 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants