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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/respond-with-allow-csp-from-header.php

Issue 2404373003: Experimental Feature: Allow-CSP-From header (Closed)
Patch Set: Without all those style changes Created 4 years, 2 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
(Empty)
1 <?php
2 $allow_csp_from = isset($_GET['allow_csp_from']) ? $_GET['allow_csp_from'] : null;
3 if ($allow_csp_from)
4 header('Allow-CSP-From: ' . $allow_csp_from);
5 $csp = isset($_GET['csp']) ? $_GET['csp'] : null;
6 if ($csp)
7 header('Content-Security-Policy: ' . $csp);
8 ?>
9
10 <!DOCTYPE html>
11 <html>
12 <head>
13 <title>This page enforces embedder's policies</title>
14 </head>
15 <body>
16 Hello World.
17 <iframe src="/cross-site/b.com/title2.html"></iframe>
18 <img src="green250x50.png" />
19 <script> alert("Hello from iframe");</script>
20 <script> window.top.postMessage('loaded', '*'); </script>
21 </body>
22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698