File tree Expand file tree Collapse file tree 2 files changed +12
-30
lines changed Expand file tree Collapse file tree 2 files changed +12
-30
lines changed Original file line number Diff line number Diff line change @@ -1078,34 +1078,23 @@ <h3 class="heading settled" data-level="5.3" id="should-block-fetch"><span class
1078
1078
< code > CORS-with-forced-preflight</ code > .
1079
1079
1080
1080
1081
-
1082
- < li >
1083
- < var > request</ var > ’s < a data-link-type ="dfn " href ="https://fetch.spec.whatwg.org/#concept-request-initiator "> initiator</ a > is "< code > fetch</ code > ", and
1084
- < a data-link-type ="dfn " href ="https://fetch.spec.whatwg.org/#concept-request-destination "> destination</ a > is "< code > subresource</ code > ", and
1085
- < var > request</ var > is < em > not</ em > a < a data-link-type ="dfn " href ="#passthrough-request "> passthrough request</ a > .
1086
-
1087
-
1088
1081
1089
1082
</ ol >
1090
1083
1091
1084
1092
1085
1093
1086
1094
1087
< li >
1095
- Return < strong > blocked </ strong > < em > unless </ em > one or more of the
1096
- following conditions are met:
1088
+ Return < strong > allowed </ strong > if one or more of the following
1089
+ conditions are met:
1097
1090
1098
1091
1099
1092
< ol >
1100
1093
1101
1094
< li >
1102
- < var > request</ var > ’s < a data-link-type ="dfn " href ="https://fetch.spec.whatwg.org/#concept-request-initiator "> initiator</ a > is "< code > fetch</ code > ".
1103
-
1104
-
1105
- < p class ="note " role ="note "> Note: We deal with the rejection case for < code > fetch</ code > in the
1106
- previous step. See the bottom of this algorithm for a more detailed
1107
- explanation of why we need this special casing.</ p >
1108
-
1095
+ < var > request</ var > ’s < a data-link-type ="dfn " href ="https://fetch.spec.whatwg.org/#concept-request-initiator "> initiator</ a > is "< code > fetch</ code > " and
1096
+ < a data-link-type ="dfn " href ="https://fetch.spec.whatwg.org/#concept-request-destination "> destination</ a > is "< code > subresource</ code > ", and
1097
+ < var > request</ var > is a < a data-link-type ="dfn " href ="#passthrough-request "> passthrough request</ a > .
1109
1098
1110
1099
1111
1100
@@ -1131,7 +1120,7 @@ <h3 class="heading settled" data-level="5.3" id="should-block-fetch"><span class
1131
1120
1132
1121
1133
1122
< li >
1134
- Return < strong > allowed </ strong > .
1123
+ Return < strong > blocked </ strong > .
1135
1124
1136
1125
1137
1126
Original file line number Diff line number Diff line change @@ -739,24 +739,17 @@ <h3 id="should-block-fetch">
739
739
< var > request</ var > 's < code > mode</ code > is < code > CORS</ code > or
740
740
< code > CORS-with-forced-preflight</ code > .
741
741
</ li >
742
- < li >
743
- < var > request</ var > 's < a > initiator</ a > is "< code > fetch</ code > ", and
744
- < a > destination</ a > is "< code > subresource</ code > ", and
745
- < var > request</ var > is < em > not</ em > a < a > passthrough request</ a > .
746
- </ li >
747
742
</ ol >
748
743
</ li >
749
744
< li >
750
- Return < strong > blocked </ strong > < em > unless </ em > one or more of the
751
- following conditions are met:
745
+ Return < strong > allowed </ strong > if one or more of the following
746
+ conditions are met:
752
747
753
748
< ol >
754
749
< li >
755
- < var > request</ var > 's < a > initiator</ a > is "< code > fetch</ code > ".
756
-
757
- Note: We deal with the rejection case for < code > fetch</ code > in the
758
- previous step. See the bottom of this algorithm for a more detailed
759
- explanation of why we need this special casing.
750
+ < var > request</ var > 's < a > initiator</ a > is "< code > fetch</ code > " and
751
+ < a > destination</ a > is "< code > subresource</ code > ", and
752
+ < var > request</ var > is a < a > passthrough request</ a > .
760
753
</ li >
761
754
< li >
762
755
< var > request</ var > 's < a > type</ a > is "< code > image</ code > ", and
@@ -771,7 +764,7 @@ <h3 id="should-block-fetch">
771
764
</ ol >
772
765
</ li >
773
766
< li >
774
- Return < strong > allowed </ strong > .
767
+ Return < strong > blocked </ strong > .
775
768
</ li >
776
769
</ ol >
777
770
You can’t perform that action at this time.
0 commit comments