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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/resource.py

Issue 2711913003: Upstream Blink's 'securitypolicyviolation' tests. (Closed)
Patch Set: MANIFEST Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/resource.py
diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/resource.py b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/resource.py
new file mode 100644
index 0000000000000000000000000000000000000000..1e3a0bf7b0e00283e9da45df737e27a892d917ae
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/resource.py
@@ -0,0 +1,5 @@
+def main(request, response):
+ headers = []
+ headers.append(("Access-Control-Allow-Origin", "*"))
+
+ return headers, "{ \"result\": \"success\" }"

Powered by Google App Engine
This is Rietveld 408576698