我使用的是共享主机,因此无法编辑 Apache 设置。我需要允许用户以这种方式下载 .crx 文件:
1) The file has the content type application/x-chrome-extension
2) The file is not served with the HTTP header X-Content-Type-Options: nosniff
3) The file is served with one of the following content types:
- empty string
- "text/plain"
- "application/octet-stream"
- "unknown/unknown"
- "application/unknown"
我怎样才能用 PHP 或其他方式做到这一点?