# Add-On extension XPI file will download but will not automatically install

**URL:** <https://discourse.mozilla.org/t/add-on-extension-xpi-file-will-download-but-will-not-automatically-install/110261>\
**Category:** addons.mozilla.org\
**Created:** [January 23, 2023, 1:43am UTC](https://discourse.mozilla.org/t/add-on-extension-xpi-file-will-download-but-will-not-automatically-install/110261 "2023-01-23T01:43:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![steo](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/steo/32/60984_2.png) [@steo](https://discourse.mozilla.org/u/steo)\
**Post date:** [January 23, 2023, 1:43am UTC](https://discourse.mozilla.org/t/add-on-extension-xpi-file-will-download-but-will-not-automatically-install/110261/1 "2023-01-23T01:43:04Z")

</div>

Dear Community,

I am looking for some help on letting users installing my add-on.  
I have develop a very easy add-on (is a self-distributed) and I am trying to create a webpage link to install the add-on directly from the webpage using the Firefox browser.

I have followed this official instructions:  
_[https://extensionworkshop.com/documentation/publish/self-distribution/](https://extensionworkshop.com/documentation/publish/self-distribution/)_

However…  
Every time the user click on the link it will download the XPI add-on file but will not install it automatically or will not provide the typical installation request.  
How can I achieve the desired result? I have been trying different solution for a while but I am not going anywhere.

If I create a local webpage on my computer and link the URL to the local XPI add-on file it will actually install it as desired (showing a pop-up authorization request).

Thank you in advance for any help!

Edit: my add-on is a self distributed one.

---

<div class="post-metadata">

**Author:** ![juraj.masiar](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/juraj.masiar/32/30587_2.png) [@juraj.masiar](https://discourse.mozilla.org/u/juraj.masiar)\
**Post date:** [January 23, 2023, 9:26am UTC](https://discourse.mozilla.org/t/add-on-extension-xpi-file-will-download-but-will-not-automatically-install/110261/2 "2023-01-23T09:26:26Z")

</div>

I think your server needs to serve it with proper header:  
`Content-Disposition: inline`

More info:

> **[Content-Disposition - HTTP | MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition)**
>
> The HTTP Content-Disposition header indicates whether content should be displayed inline in the browser as a web page or part of a web page or downloaded as an attachment locally.

EDIT:  
Or maybe just not serve it with `attachment` value is enough, this is an example response that works as expected:

 ![image](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/3X/3/4/3411a031cec10f08f706f42735afaa2624ad67dc.png)
