Hiding Configuration File from User

22 views
Skip to first unread message

Sumit Bhardwaj

unread,
Jul 17, 2019, 1:01:02 PM7/17/19
to Angular and AngularJS discussion

Hi,

We are using Angular JS version 7. Our application has one configuration file which stores server url and some other options.

One of clients is insisting that this file should be hidden from end user, is there a way to hide the configuration file, or any other way around this?

Best
Sumit

Sander Elias

unread,
Jul 18, 2019, 12:05:58 AM7/18/19
to Angular and AngularJS discussion
Hi Sumit,

The server's url? is your API server on a different host as the app itself?
The simple way would be, store the config in a separate API on your app's server. Then load it before you launch your app.

Regards
Sander

Sumit Bhardwaj

unread,
Jul 18, 2019, 12:44:30 AM7/18/19
to ang...@googlegroups.com
Hi Sander,

The API server resides on different host, that's why we need this configuration.

Is there any other solution to this problem.

Best
Sumit



--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
To view this discussion on the web visit https://groups.google.com/d/msgid/angular/57b9839b-bd58-431d-bbd4-2dc604cb4395%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marvin Cook

unread,
Jul 18, 2019, 12:32:03 PM7/18/19
to Angular and AngularJS discussion
Encrypt the important information in the file.  Store the key on the server,  Make key access part of the authorization process.

Marv

On Thursday, July 18, 2019 at 12:44:30 AM UTC-4, Sumit Bhardwaj wrote:
Hi Sander,

The API server resides on different host, that's why we need this configuration.

Is there any other solution to this problem.

Best
Sumit



On Thu, Jul 18, 2019 at 9:36 AM Sander Elias <sande...@gmail.com> wrote:
Hi Sumit,

The server's url? is your API server on a different host as the app itself?
The simple way would be, store the config in a separate API on your app's server. Then load it before you launch your app.

Regards
Sander

--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ang...@googlegroups.com.

Sumit Bhardwaj

unread,
Jul 25, 2019, 1:52:19 AM7/25/19
to ang...@googlegroups.com
Ok, thanks Marv.

Best
Sumit

To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.

To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
Reply all
Reply to author
Forward
0 new messages