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

Setting CSP #644

Open
Pomax opened this issue Aug 5, 2020 · 5 comments · May be fixed by #282
Open

Setting CSP #644

Pomax opened this issue Aug 5, 2020 · 5 comments · May be fixed by #282
Labels

Comments

@Pomax
Copy link

Pomax commented Aug 5, 2020

Is there a way to set CSP in a similar way to setting CORS, or more generically, is there a way to manually specify a batch of headers to send with each response? Having to actually write a complete Node based server solution just to test that a page works with CSP in place is really silly if http-server would allow that kind of testing with a one line, e.g.

> http-server -p 8000 --cors --csp="default-src 'self'; img-src *; media-src example.com; script-src 'self'"
@ronaldohoch
Copy link

Can I work on a PR for Hacktoberfest?

@Pomax
Copy link
Author

Pomax commented Oct 16, 2020

probably won't do much: I submitted a PR in August, and no one's even looked at it yet. There's 45 open pull requests, and all signs that the maintainers have abandoned this project.

@thornjad
Copy link
Member

@ronaldohoch go for it! I opted-in this project to Hacktoberfest, so anything you submit will count after the maturity period. The current maintainer team is quite busy with other things, but I'm trying to get things moving again

@Tofandel
Copy link

Tofandel commented Jul 23, 2021

#687 or #282 Would solve this
Ground was laid in #28 but was missing the cli options

This is a much requested feature:

Related:
#684
#281

@thornjad thornjad added this to the v14.0 milestone Aug 16, 2021
@thornjad thornjad linked a pull request Aug 16, 2021 that will close this issue
@thornjad thornjad removed this from the v14.0 milestone Oct 11, 2021
@github-actions
Copy link

This issue has been inactive for 180 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants