angularjs - Frontend - How to avoid show data from my server -


i'm creating application using angularjs , i'm developing simple login there 1 thing i've notice. when user enter wrong password backend returns error code read , process , tells user "wrong password", so, checking response chrome tools , backend showing data server like:

enter image description here

in content says: "websphere application server version v8.5 liberty...".

maybe hacker can check information , search wich vulnerabilites 8.5 version of websphere.

my question is: how can avoid this? or thing backend shoud fix?

if concern dc.title need start server command line rather using eclipse tools. when launched eclipse different html output has dc.title. if launch command line should this:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> 

however isn't idea rely on server default error page, better provide right in application/webpage. adding web.xml:

<error-page>     <location>/my-general-error.html</location> </error-page> 

then can put this, including nothing.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -