Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 atlas-connect 和 node js 中完成的 HipChat 插件中存储硬编码的用户名/密码,这样它在前端不可见但前端 JS 会使用它来进行 ajax 调用?
当前端使用某些东西时,它是完全暴露的,所以答案肯定是否定的。您必须从服务器端使用该密码(在正确验证来自 hipchat 的呼叫之后)或使用某种不会暴露危险的令牌。