[
https://issues.apache.org/jira/browse/DRILL-7626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17060183#comment-17060183
]
ASF GitHub Bot commented on DRILL-7626:
---------------------------------------
arina-ielchiieva commented on pull request #2025: DRILL-7626: Add ability to
set HTTP response headers
URL: https://github.com/apache/drill/pull/2025#discussion_r393000402
##########
File path: distribution/src/main/resources/drill-override-example.conf
##########
@@ -176,6 +176,15 @@ drill.exec: {
validatePeerCerts: false,
# true if SSL wants client authentication.
wantClientAuth: false
+ },
+ response: {
+ # any response headers with constant values may be configured like
this
+ headers: {
+ "X-XSS-Protection": "1; mode=block",
+ "X-Content-Type-Options": "nosniff",
+ "Strict-Transport-Security": "max-age=31536000;includeSubDomains",
+ "Content-Security-Policy": "default-src https:; script-src
'unsafe-inline' https:; style-src 'unsafe-inline' https:; font-src data:
https:; img-src data: https:"
Review comment:
Thanks. Please don't forget to add comment as well :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Add ability to set HTTP response headers
> ----------------------------------------
>
> Key: DRILL-7626
> URL: https://issues.apache.org/jira/browse/DRILL-7626
> Project: Apache Drill
> Issue Type: Sub-task
> Reporter: Igor Guzenko
> Assignee: Igor Guzenko
> Priority: Major
> Labels: ready-to-commit
> Fix For: 1.18.0
>
>
> It should be possible to make response headers configurable under common
> options path
> *drill.exec.http.jetty.server.response.headers*, like
> {code:none}
> jetty: {
> server: {
> response: {
> # any response headers with constant values may be configured like
> this
> headers: {
> "Custom Header Name": "Text Value",
> "BooleanHeader": true
> }
> }
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)