Now, that’s an improvement! Yes, the header is also on my list, because I’m trying my best to get even more editor space.
You’re gonna save user content on your server?
If you click the “Save” icon on the top right, the code gets written into a folder and that code gets hosted, so basically you get instant hosting, if that’s what you meant.
And that is saved in your container?
Yes. Not a good idea, I know, and I’m currently looking for other options. But it doesn’t take too much of my space, somehow. I have around 50 folders right now, each containing an
script.js and a
style.js but so far it’s been only 4% of the disk.
Hahah, just be careful with that
For anyone who’s interested: sample project made using GlitchyPastePen: https://glitchypastepen.glitch.me/p/obedient_magenta_bandicoot
You should also consider that this is a huge security risk to serve user-content under same domain.
There could be a bit of an issue with XSS so just a heads up like @ihack2712 said.
XSS is not really the issue here though. Just make sure that your users don’t set cookies, because all other projects could potentionally fetch those cookies.
Created a pull request @khalby786
I’m actually planning to create a new private project which will work as the back-end the whole thing.
Oooh, interesting use case of GlitchyPastePen.
Isn’t this a Megathread now?
Think so, let me change it
Also, continuing the discussion about databases we had earlier in this thread, @17lwinn had suggested MongoDB for “better security and easier UI”, I found Deta which has a more generous free tier than MongoDB.
do you wish to use that?
plus, any more work being scheduled @khalby786?
Have a lot of ideas in my mind floating around, but I’m unsure when to make new updates.