Modifying apiEndPoint for frontend calls

Now the session cookie is being stored by the browser & works on safari
too :clap: