lit / lit/lit.dev

Add a security page

Open
#715 2 comments 1 reaction 1 assignee View on GitHub

@rictic is already working on this.

Since Mar 14, 2022.

Dominant language
TypeScript
Stars
142
Forks
230
PR merge metrics
No merged PRs in 30d

Description

We should have a page that talks about all the security protections and considerations when using Lit.

* Built-in XSS protection
* TemplateResult forging prevention
* Trusted Types
* `css` tag expression limitations
* `unsafeHtml` and `unsafeSvg`
* `unsafeStatic` and `literal`
* Using Lit with CSP and the `litNonce` property

Related issues:
- https://github.com/lit/lit.dev/issues/448
- https://github.com/lit/lit.dev/issues/446

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.