lukeed / sirv

An optimized middleware & CLI application for serving static files~!
MIT License
1.07k stars 58 forks source link

Enable custom headers for sirv-cli #121

Open danitrod opened 3 years ago

danitrod commented 3 years ago

In a really specific application I would like to quickly setup a server with sirv-cli, but I need some specific headers to be sent with my resources (namely COOP and COEP). I was thinking maybe a --custom-header <name>:<value> option would be an interesting addition. Any thoughts? Happy to help contributing code if needed.

adamdbradley commented 2 years ago

I have this same requirement and would love to see this feature.

MarkusKramer commented 2 years ago

Would be good to set correct CSP headers during development.