Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
oniTony
· 15y ago · 0 comments
This seems pretty amazing, but I guess there's no way around letting users work on arbitrary JavaScript and XSS?
http://jsfiddle.net/wk7sK/
Comments
[–]
mckoss
15y ago
They could put all executed code in a cookie-less domain, that way it can't access any private resources on your behalf (modulo XSS bugs on other sites). This is what the Google code playground does:
http://code.google.com/apis/ajax/playground/
[–]
cleverjake
15y ago
Man, I have never seen the code playground before. This makes using their APIs so much easier. Thanks man
[–]
zalun
15y ago
They use the same editor engine
[–]
zalun
15y ago
We use different domain for displaying fiddles.