Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.php

Issue 2002943002: CSP violation reports should report the pre-redirect URL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?php 1 <?php
2 header("Content-Security-Policy-Report-Only: img-src 'none'; report-uri resource s/save-report.php?test=report-blocked-uri-cross-origin.php"); 2 header("Content-Security-Policy-Report-Only: img-src 'none'; report-uri resource s/save-report.php?test=report-blocked-uri-cross-origin.php");
3 ?> 3 ?>
4 <script src="resources/report-test.js"></script> 4 <script src="resources/report-test.js"></script>
5 The origin of this image should show up in the violation report. 5 The image URL should show up in the violation report.
6 <img src="http://localhost:8080/security/resources/abe.png"> 6 <img src="http://localhost:8080/security/resources/abe.png">
7 <script src="resources/go-to-echo-report.js"></script> 7 <script src="resources/go-to-echo-report.js"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698