# Img basic authentication

**URL:** <https://forum.ionicframework.com/t/img-basic-authentication/61543>\
**Category:** ionic-v1\
**Created:** [August 25, 2016, 7:41am UTC](https://forum.ionicframework.com/t/img-basic-authentication/61543 "2016-08-25T07:41:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Norgul](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@Norgul](https://forum.ionicframework.com/u/Norgul)\
**Post date:** [August 25, 2016, 7:41am UTC](https://forum.ionicframework.com/t/img-basic-authentication/61543/1 "2016-08-25T07:41:32Z")

</div>

How can I pass basic authentication for images? I can get resources I want with http request providing header with auth data, but I have no idea how to do it with img tags.

I have tried using the `username:password@server` as src, but no luck…
