# How to password protect multiple sub domain but single login

**URL:** <https://discourse.haproxy.org/t/how-to-password-protect-multiple-sub-domain-but-single-login/761>\
**Category:** Help!\
**Created:** [October 30, 2016, 5:15pm UTC](https://discourse.haproxy.org/t/how-to-password-protect-multiple-sub-domain-but-single-login/761 "2016-10-30T17:15:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![No-More](https://avatars.discourse-cdn.com/v4/letter/n/5daacb/32.png) [@No-More](https://discourse.haproxy.org/u/No-More)\
**Post date:** [October 30, 2016, 5:15pm UTC](https://discourse.haproxy.org/t/how-to-password-protect-multiple-sub-domain-but-single-login/761/1 "2016-10-30T17:15:09Z")

</div>

Hello,

I’m new to haproxy,

I have managed to set up a password protected access (for development platform) but my application is making ajax call to other subdomain of the same domain (for example [client.test.com](http://client.test.com) -\> [server.test.com](http://server.test.com)).  
But those calls are rejected due to the previous rule. How could I managed to login on one subdomain, for all other subdomain ? or is it possible to not ask for password if the request comes from a browser app loaded from another domain ?

I’m not sure my question is please, please ask if you need more information.

Thanks a lot.
