asvd / jailed

execute untrusted code with custom permissions
MIT License
1k stars 69 forks source link

Add chrome https fallback #13

Closed MegaApuTurkUltra closed 8 years ago

MegaApuTurkUltra commented 8 years ago

I've added a function jailed.setChromeHttpsWorkaroundOn(boolean) that makes jailed use a workaround to avoid the error chrome gives on https.

Enabling the workaround gives the jailed script access to origin things such as indexedDB and ajax, so be careful if using it

asvd commented 8 years ago

thx, but I would not merge this pull request. Giving an access to the origin destroys the idea of sandboxing. The right way on my opinion would be to investigate on how to properly enable the sandbox in Chromium and maybe submit a ticket for them.