Sarthak,
you can set anonymous authentication on the xsaccess file... most likely you have forms or basic authentication.. set it to null so that you dont get prompted... keep in mind this will be the behavior unless you somehow pass such credentials to the HANA db when calling the xsjs service / stored proc