scottcorgan / pushstate-server

Static file server that works with HTML5 Pushstate.
421 stars 35 forks source link

Handle custom headers #87

Open benoitmugnier opened 4 years ago

benoitmugnier commented 4 years ago

I would like to submit this simple PR to allow the users to set some custom headers. As you may know OWASP guidance is to set some headers for each request like "X-Content-Type-Options", "X-XSS-Protection" or "X-Frame-Options" headers to get a more secure website. The goal of this commit is to allow developers to set those headers if needed.

PS: Many thanks for your package, it's super useful! :-)

benoitmugnier commented 4 years ago

Hey @scottcorgan , is it an option to merge this PR, please?