If I provide a public-facing website for users on my website at their own subdomain (e.g. bob.myapp.com) under their own control, can I allow them to execute arbitrary JavaScript without putting my main app server at risk (e.g. myapp.com)? The users would be able to put their own *.js files in the public root of their subdomains.
I have an extremely limited understanding of the JS Same Origin Policy, but I believe that different subdomains count as different origins. Therefore if my main app (myapp.com) is secured from XSS etc., is there anything specific I need to worry about from the users' subdomains that I wouldn't have to worry about for any other external source?
Thanks!
myapp.comor about someone stealing your scripts and using them onbob.myapp.com? because if you don't include data from subdomains in your main html/javascript/... files, i see no way the data would suddenly include themselves.. – Oct 25 '12 at 18:36