dongjoon-hyun opened a new pull request, #57144:
URL: https://github.com/apache/spark/pull/57144

   ### What changes were proposed in this pull request?
   
   This PR aims to enable `spark.ui.contentSecurityPolicy.enabled` by default 
from Apache Spark 4.3.0.
   
   ### Why are the changes needed?
   
   The `Content-Security-Policy` (CSP) header provides defense-in-depth against 
XSS on the Spark UI. All UI pages already emit CSP nonces for their inline 
scripts, so enabling it by default hardens the Web UI out of the box.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, the Spark UI sets the `Content-Security-Policy` header by default. To 
restore the previous behavior, set `spark.ui.contentSecurityPolicy.enabled` to 
`false`.
   
   ### How was this patch tested?
   
   Pass the CIs.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Fable 5


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to