Skip to content

[LIVY-785] Enable adding security related HTTP headers - #456

Merged
gyogal merged 1 commit into
apache:masterfrom
nileshrathi345:master_livy-785
Apr 14, 2025
Merged

[LIVY-785] Enable adding security related HTTP headers#456
gyogal merged 1 commit into
apache:masterfrom
nileshrathi345:master_livy-785

Conversation

@nileshrathi345

@nileshrathi345 nileshrathi345 commented Sep 12, 2024

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This change introduces a new configuration option livy.server.security-headers.enabled.
When this property is set to true, the following security headers are added to HTTP
responses by default:

  • X-XSS-Protection
  • X-Frame-Options
  • X-Content-Type-Options
  • Strict-Transport-Security
  • Content-Security-Policy

Also, adds content type information to all responses as required when using content type option nosniff

How was this patch tested?

Tested manually

@gyogal gyogal changed the title LIVY-785: Enabled adding security related HTTP headers [LIVY-785] Enable adding security related HTTP headers Nov 22, 2024

@gyogal gyogal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for your contribution!

@gyogal
gyogal merged commit f580e71 into apache:master Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants