File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
fetch/cross-origin-resource-policy Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ // META: script=/common/get-host-info.sub.js
2
+
3
+ const crossOriginURL = get_host_info ( ) . HTTP_REMOTE_ORIGIN + "/fetch/cross-origin-resource-policy/resources/hello.py?corp=" ;
4
+
5
+ [
6
+ "same" ,
7
+ "same, same-origin" ,
8
+ "SAME-ORIGIN" ,
9
+ "Same-Origin" ,
10
+ "same-origin, <>" ,
11
+ "same-origin, same-origin"
12
+ ] . forEach ( incorrectHeaderValue => {
13
+ // Note: an incorrect value results in a successful load, so this test is only meaningful in
14
+ // implementations with support for the header.
15
+ promise_test ( t => {
16
+ return fetch ( crossOriginURL + encodeURIComponent ( incorrectHeaderValue ) , { mode : "no-cors" } ) ;
17
+ } , "Parsing Cross-Origin-Resource-Policy: " + incorrectHeaderValue ) ;
18
+ } ) ;
You can’t perform that action at this time.
0 commit comments