Strip url to origin in X-Frame-Options violation messages
X-Frame-Options violations are logged via a console message in the parent frame. To avoid leaking sensitive data to the parent frame, let's report as "blocked url" just the origin of the blocked frame's url, as we are already doing for the frame-ancestors CSP directive. Bug: 1146651 Change-Id: If5e5ac62f7e44e714b109e6adc389f11999e0f8b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2534851 Commit-Queue: Antonio Sartori <antoniosartori@chromium.org> Reviewed-by:Charlie Reis <creis@chromium.org> Reviewed-by:
Arthur Sonzogni <arthursonzogni@chromium.org> Cr-Commit-Position: refs/heads/master@{#828651}
Showing
Please register or sign in to comment