简体   繁体   English

使用JavaScript在客户端访问MongoDB

[英]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 ? 有没有办法使用客户端JavaScript在MongoDb上打开连接? The JavaScript driver on Mongo's website is for use on NodeJS only. Mongo网站上的JavaScript驱动程序仅用于NodeJS。

Thanks, 谢谢,

Fred_ Fred_

Take a look at the mongodb http interfaces list . 看一下mongodb http接口列表 Start a mongodb, start the sever, request/modify a data from that server using ajax. 启动mongodb,启动服务器,使用ajax从该服务器请求/修改数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM