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

Unified Diff: LayoutTests/http/tests/security/link-crossorigin-stylesheet-no-cors-expected.txt

Issue 135723008: Add CORS support for <link> elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add setCrossOriginAccessControl() helper to avoid repetition matching CORS attribute value Created 6 years, 11 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: LayoutTests/http/tests/security/link-crossorigin-stylesheet-no-cors-expected.txt
diff --git a/LayoutTests/http/tests/security/link-crossorigin-stylesheet-no-cors-expected.txt b/LayoutTests/http/tests/security/link-crossorigin-stylesheet-no-cors-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d6b6e650ccbca10d36b1cc125c6448f27fde6136
--- /dev/null
+++ b/LayoutTests/http/tests/security/link-crossorigin-stylesheet-no-cors-expected.txt
@@ -0,0 +1,15 @@
+CONSOLE ERROR: CSS stylesheet from origin 'http://localhost:8080' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access.
+CONSOLE ERROR: CSS stylesheet from origin 'http://localhost:8080' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access.
+CONSOLE ERROR: CSS stylesheet from origin 'http://localhost:8080' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access.
+CONSOLE ERROR: CSS stylesheet from origin 'http://localhost:8080' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access.
+Test that a linked stylesheet with a crossorigin attribute does not load a cross-origin resource that isn't CORS enabled.
+
+PASS
+PASS
+PASS
+PASS
+PASS
+PASS
+PASS
+PASS
+

Powered by Google App Engine
This is Rietveld 408576698