New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DoH: allow configuration of HTTP header #7900
Comments
With reference to https://dnsdist.org/reference/config.html#addDOHLocal, perhaps adding 'headers' to the options, taking a table, might make sense. I'm assuming that we can easily deal with tables in that place. |
Agreed, we already do something like that for the internal webserver: https://dnsdist.org/reference/config.html?highlight=headers#webserver |
For transparency, I'm going to work on this for this week. I'll keep you posted. |
Usecase
RFC8484 states:
This usecase requires CORS headers otherwise browsers will not allow it.
dnsdist does not yet set the CORS header:
This feature request is about allowing operators to add HTTP headers to dnsdist's HTTP responses to allow the described usecase and potentially others. One obvious usecase is CORS
Access-Control-Allow-Origin: *
but this feature should allow the operator to configure arbitrary HTTP header (i.e. also HSTS).
Some exceptions may apply, for example the server header is already set via
serverTokens
#7894.HTTP header should be configurable per frontend and per SNI.
ref: https://gitlab.labs.nic.cz/knot/knot-resolver/merge_requests/823
The text was updated successfully, but these errors were encountered: