Rails, routes, angularjs

21 views
Skip to first unread message

Gm

unread,
Mar 4, 2016, 7:03:42 AM3/4/16
to Ruby on Rails: Talk
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.

Colin Law

unread,
Mar 4, 2016, 7:11:26 AM3/4/16
to Ruby on Rails: Talk
Once you get into production you will not be starting the server from
a terminal window, so they will not be displayed.

Colin

Gm

unread,
Mar 4, 2016, 7:15:57 AM3/4/16
to Ruby on Rails: Talk
The requests are displayed in the firebug console for example.

Colin Law

unread,
Mar 4, 2016, 7:27:14 AM3/4/16
to Ruby on Rails: Talk
On 4 March 2016 at 12:15, Gm <javap...@gmail.com> 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
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/3616300c-4cc6-4c24-8784-2c6cf2714982%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages