[ 
https://issues.apache.org/jira/browse/DRILL-7626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17059658#comment-17059658
 ] 

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_r392673072
 
 

 ##########
 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:
   Could you please create Jira to remove inline from scripts and styles and 
leave comment here with reference to this Jira indicating why we have to allow 
inline for now. Thanks.
 
----------------------------------------------------------------
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)

Reply via email to