我需要以这种方式提供.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:
- "text/plain"
- "application/octet-stream"
- "unknown/unknown"
- "application/unknown"
如何设置我的.htaccess文件呢?
答案 0 :(得分:-1)
.php
并使用:
<?
header('Content-Type: application/x-chrome-extension');
?>
...original-file-contents...
我认为您不需要.crx扩展名。如果由于某种原因,您可以使用file.php/fake.crx
而不是file.php
。