sveltejs / sveltejs/kit

Improved CSP documentation

Open
#4,440 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation
Dominant language
JavaScript
Stars
20.8k
Forks
2.3k
Avg merge
1d 16h
Merged PRs (30d)
156

Description

Describe the problem

%svelte.nonce% does not appear to be documented anywhere

Also, we don't really describe what happens with the various options. E.g. what happens if you set hash? It's a lesser issue, but we could possibly illuminate it a little more

Describe the proposed solution

I assume we'd like to document it?

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the CSP documentation and review how %svelte.nonce% and the CSP options are currently described. Document the nonce and clarify the effects of options such as hash; done means users can find the nonce documentation and understand the relevant option behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.