Skip to content

[LIVY-785] Enable adding security related HTTP headers to responses - #396

Closed
andrasbeni wants to merge 1 commit into
apache:masterfrom
andrasbeni:785
Closed

[LIVY-785] Enable adding security related HTTP headers to responses#396
andrasbeni wants to merge 1 commit into
apache:masterfrom
andrasbeni:785

Conversation

@andrasbeni

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

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 commented Nov 14, 2024

Copy link
Copy Markdown
Contributor

FYI a new PR #456 has been submitted for this issue that includes the missing SecurityHeadersFilter class and adds two new headers "Strict-Transport-Security" and "Content-Security-Policy". Please feel free to leave a review comment there.

@andrasbeni andrasbeni closed this Nov 14, 2024
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