Rails, routes, angularjs

Hi,

I’m using AngularJS with Rails and I have a problem.
My angular code makes several call to an API and all requests are
displayed
in the console.
I think it’s a problem because I’m exposing some parameters and
informations about my API.

Is there a way to hide these requests ?
How can I solve this problem ?

Thanks.

On 4 March 2016 at 12:03, Gm [email protected] wrote:

Hi,

I’m using AngularJS with Rails and I have a problem.
My angular code makes several call to an API and all requests are displayed
in the console.
I think it’s a problem because I’m exposing some parameters and informations
about my API.

Is there a way to hide these requests ?
How can I solve this problem ?

Once you get into production you will not be starting the server from
a terminal window, so they will not be displayed.

Colin

The requests are displayed in the firebug console for example.

On 4 March 2016 at 12:15, Gm [email protected] wrote:

The requests are displayed in the firebug console for example.

Ah, I thought you meant the server console window. I should probably
have realised, as you said it was angular code.
How to stop stuff displaying in the FF console is not a Rails issue, I
don’t think. I doubt if it is possible.
Even if there were a way anyone can inspect the javascript code and
work out what it is doing, if they are really interested.

Colin