kettle11 / devserver

A simple HTTPS server for local development. Implemented in Rust.
zlib License
95 stars 15 forks source link

Allow extra headers to be specified (fixes #1) #13

Closed fornwall closed 3 years ago

fornwall commented 3 years ago

This allows for additional response headers to be specified as asked for in https://github.com/kettle11/devserver/issues/1:

devserver --header Access-Control-Allow-Origin="*" --header Cross-Origin-Opener-Policy=same-origin

Thanks for this tool and the https://ianjk.com/devserver/ post! Let me know of any modifications you want.

kettle11 commented 3 years ago

Looks good! I've merged your changes. I also appreciate that your code matches the style and simplicity of deserver.

Thanks for putting the time into figuring this one out!

I'll push a new version of devserver to crates.io later today.