dhavalshah9131 opened a new pull request, #585:
URL: https://github.com/apache/ranger/pull/585

   ## What changes were proposed in this pull request?
   RANGER-4993 : Ranger KMS - Missing HSTS Headers for 404 Not found requests 
port 9494
   
   HSTS header is missing for 404 Not found requests .
   
   E.G.
   curl -ivk -u  keyadmin:Admin123  
[https://<fqdn>:9494/](https://%3Cfqdn%3E:9494/)
   
   OR
   
   curl -ivk --negotiate -u : [https://<fqdn>:9494](https://%3Cfqdn%3E:9494/)
   
   
   ```
   < HTTP/1.1 404 Not Found
   HTTP/1.1 404 Not Found
   < Content-Type: text/html;charset=utf-8
   Content-Type: text/html;charset=utf-8
   < Content-Language: en
   Content-Language: en
   < Content-Length: 682
   Content-Length: 682
   < Date: Mon, 26 Aug 2024 13:12:21 GMT
   Date: Mon, 26 Aug 2024 13:12:21 GMT
   < Server: Apache Ranger
   Server: Apache Ranger
   ```
   
   
   ## How was this patch tested?
   
   Successfully validated the HSTS header for above API and all the existing 
APIs such as GET keys, create keys, rollover keys , delete keys.
   


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to