Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9117337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:52:32+00:00 2026-06-17T04:52:32+00:00

In an mvc framework like angularjs, so far examples ive found stores the database

  • 0

In an mvc framework like angularjs, so far examples ive found stores the database credentials in an app.constant property in an app.js file, this is easily readable by users

in my case im connecting to mongolab via a service loaded from a mongolab.js file. my apikey is defined in there, and of course i have no access to the mongolab backend to have it receive a hash

what would be best practice to tackle this? preferably with pointers to some material i can study.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:52:34+00:00Added an answer on June 17, 2026 at 4:52 am

    Why don’t you connect to mongolab server side? Clientside will always be at risk, even if you use encryption.

    In angular, you would have a service (using app.factory()), which connects via your service layer (using jsonp or another format), which will check his ‘connector table’ to call the right (external) service. Here is a very simple scheme:

    Client (js) --> Server (java, php, ...) --> Service 1
                                            --> Service 2
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We'd like to use the ASP.Net MVC Framework to extend (and gradually convert) an
I am designing a web application using the ASP.net MVC framework. I would like
For class, I would like a to use PHP MVC framework very similar to
I'd like to learn Spring MVC framework basis. My personal experience tells clearly that
I would like to know what would be the best MVC framework that can
I would like to know are there any Java (MVC) framework for non-web application
I am using a MVC framework which is a bit like struts. So, say
I am new to ASP.NET MVC framework, I would like to achieve the below
Is there any sort of framework like ASP.NET MVC available for WPF? I know
I'm adapting a vcard implementation to a JS MVC framework. I'd like to be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.