Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Differentiate between "None" and NONE in directives #229

Open
janbrasna opened this issue Jun 27, 2024 · 0 comments
Open

docs: Differentiate between "None" and NONE in directives #229

janbrasna opened this issue Jun 27, 2024 · 0 comments

Comments

@janbrasna
Copy link

Reading through the docs:

DIRECTIVES
A dictionary of policy directives. Each key in the dictionary is a directive and the value is a list of sources for that directive. The following is a list of all the directives that can be configured.

  • default-src
    Set the default-src directive. A tuple or list of values, e.g.: ("'self'", 'cdn.example.net'). [“‘self’”]
  • script-src
    Set the script-src directive. A tuple or list. None

For a while I wasn't sure of the output. If I omit script-src, the default None is meant as empty, no output, right? Not NONE as in [“‘none’”], which means something different?

Any idea how to disambiguate specifically for this case?

@janbrasna janbrasna changed the title docs: Differentiate between _None_ and none in directives docs: Differentiate between "None" and NONE in directives Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant