3
votes

How to put the key? The guide says declare it in Javascript file, but from what I know it will exposes my key to the public.

enter image description here

1

1 Answers

0
votes

You're correct in your statement that the keys will be exposed to the public and unfortunately there's no way to hide this information.

From How to use an HTML/JavaScript client for Azure Mobile Services:

The application key is intended to filter-out random request against your mobile service, and it is distributed with the application. Because this key is not encrypted, it cannot be considered secure. To truly secure your mobile service data, you must instead authenticate users before allowing access.

Microsoft recommends that you must authenticate your users. To learn more about authenticating users, please see this: https://azure.microsoft.com/en-in/documentation/articles/mobile-services-html-how-to-use-client-library/#authentication.