Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Acessing MongoDB on the Client-Side using JavaScript

I know this is completely unsafe to do because the user would have control over the credentials. But in application I'm building I don't really care it's completely insecure.

Is there a way to open a connection on a MongoDb using client-side JavaScript ? The JavaScript driver on Mongo's website is for use on NodeJS only.

Thanks,

Fred_

like image 412
BrainOverfl0w Avatar asked May 19 '12 12:05

BrainOverfl0w


1 Answers

Take a look at the mongodb http interfaces list. Start a mongodb, start the sever, request/modify a data from that server using ajax.

like image 59
o_nix Avatar answered Sep 22 '22 06:09

o_nix