搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Firefox block my domain from download a file.

  • 無回覆
  • 1 有這個問題
  • 1 次檢視
more options

I have 2 local domains that is not exists in real domain. Example: 1. mydomain-localhost.com 2. mydomain.localhost

My HTML for testing is simple. ``` <a id="download-link" href="target-file.zip" download>Download</a> ```

When I try to download from mydomain-localhost.com, it used to be working fine but then blocked after editing some JS, PHP. And now it was blocked forever. Download window said "This file is not commonly downloaded."

But if I try to download from mydomain.localhost, it will be working fine. Both domain using same HTML and file location on Windows.

How to make Firefox unblock this testing domain that is only exists on my PC?

I have 2 '''local domains''' that is not exists in real domain. Example: 1. mydomain-localhost.com 2. mydomain.localhost My HTML for testing is simple. ``` <a id="download-link" href="target-file.zip" download>Download</a> ``` When I try to download from '''mydomain-localhost.com''', it used to be working fine but then blocked after editing some JS, PHP. And now it was blocked forever. Download window said "This file is not commonly downloaded." But if I try to download from '''mydomain.localhost''', it will be working fine. Both domain using same HTML and file location on Windows. How to make Firefox unblock this testing domain that is only exists on my PC?