github / github/secure_headers

Validation on plugin-types does not allow for the empty directive

オープン
#448 コメント 1 件 リアクション 1 件 担当者 2 名 @fletchto99 が担当を希望しています GitHub で見る
主要言語
Ruby
スター
3.2k
フォーク
253
平均マージ
19時間 11分
マージ済み PR(30日)
1

説明

# Bugs

> Note: The plugin-types grammar allows for an empty directive value in which case all instantions of embed and object will fail.

https://w3c.github.io/webappsec-csp/#directive-plugin-types

We validate it must match something like `application/pdf` which is not correct.

### Expected outcome

Describe what you expected to happen

`plugin_types` should allow for an empty directive. Sending an empty array omits the directive. Sending `none` is not allowed by validation. An array of empty strings doesn't work either (validation)

### Actual outcome

Configuration errors when trying to do the right thing

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。