1

この方法で .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 ファイルをどのように設定する必要がありますか?

4

1 に答える 1

-1

ルール 1 と 3 は矛盾しています。最も簡単なのは、名前を変更して.php使用することです。

<? 
header('Content-Type: application/x-chrome-extension'); 
?>
...original-file-contents...

.crx 拡張子は必要ないと思います。何らかの理由でそうする場合は、file.php/fake.crx代わりにfile.php.

于 2012-05-25T17:08:09.930 に答える