Skip to content

Conversation

@DominicBreuker
Copy link
Contributor

This adds a new command line option -header to allow setting custom response headers. Can be used multiple times to set many of them. Addresses parts of #41 as well as #40 . My primary use case is CORS support.

For example, you can do: simplehttpserver -header 'Access-Control-Allow-Origin: *' -header 'X-Powered-By: simplehttpserver' -path /tmp/www/' to set two custom headers.

@ehsandeep ehsandeep changed the base branch from master to dev July 21, 2022 20:18
@ehsandeep ehsandeep requested a review from Mzack9999 July 21, 2022 20:20
@ehsandeep ehsandeep merged commit 1f80006 into projectdiscovery:dev Jul 25, 2022
@ehsandeep
Copy link
Member

Thank you @DominicBreuker for adding this support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants