Skip to content

Add support for custom HTTP response headers #86

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants