github / github/secure_headers

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

Aberta
#448 1 comentário 1 reação 2 responsáveis Reivindicada por @fletchto99 Ver no GitHub
Linguagem predominante
Ruby
Estrelas
3.2k
Forks
253
Merge médio
19h 11min
PRs com merge (30d)
1

Descrição

# 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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.