lit / lit/lit.dev

Set frame-ancestors CORS header on playground.lit.dev

Open
#369 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Set `Content-Security-Policy: frame-ancestors http://lit.dev;` when serving playground.lit.dev to prevent other sites from "hosting" their playground there.

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

Start by locating the serving configuration or entry point for playground.lit.dev; no file or test is named in the issue. Set the response's Content-Security-Policy header to the specified frame-ancestors value, then verify that the playground response includes the header and prevents hosting by other sites.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
security, web-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.