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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/embeddedEnforcement/allow_csp_header-same-origin.html

Issue 2404373003: Experimental Feature: Allow-CSP-From header (Closed)
Patch Set: Changing to parentSecurityOrigin 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 <head>
2 <script src="/js-test-resources/js-test.js"></script>
3 <script src="/security/contentSecurityPolicy/resources/child-src-test.js"></ script>
4 </head>
5 <body>
6 <script>
7 description("Same origin iframes are Allowed and required CSP is appende d to the list of response's CSP list.");
8 csp = "img-src 'none'; script-src 'unsafe-inline';";
9 url = "http://127.0.0.1:8000/security/contentSecurityPolicy/resources/re spond-with-allow-csp-from-header.php";
10 injectFrameWithCSP(url, csp, EXPECT_LOAD, SAME_ORIGIN);
Mike West 2016/10/14 09:08:20 We'll also need to test that the policy was applie
11 </script>
12 </body>
13 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698