Host and distribute my addon

Hello,
I am trying to host and distribute my addon on my server. I send it to clients as a ‘application/x-xpinstall’, but when I try to install it I have this warning:

I found that I have to add an exception for my server to install add-ons or to disable the options “Warn me when sites try to install add-ons”, but both are not working. Moreover, I don’t want users to do it. There is already a popup which ask the users if they want to install my addon, forcing users to open their settings in order to add a special exception to let my server ask if they want to install it or not is useless and counterproductive. People won’t install it.

Is there any solution to my problems?

There are a couple possible reasons this is happening to you: your file is hosted on a different domain than the page with the link, or you’re not using HTTPS.

My problem is solved. It was because I need to open my download link with a button.