diff --git a/fetch/corb/resources/sniffable-resource.py b/fetch/corb/resources/sniffable-resource.py new file mode 100644 index 00000000000000..7a649c224047a1 --- /dev/null +++ b/fetch/corb/resources/sniffable-resource.py @@ -0,0 +1,11 @@ +def main(request, response): + body = request.GET.first("body", None) + type = request.GET.first("type", None) + + response.add_required_headers = False + response.writer.write_status(200) + response.writer.write_header("content-length", len(body)) + response.writer.write_header("content-type", type) + response.writer.end_headers() + + response.writer.write(body) diff --git a/fetch/corb/script-resource-with-json-parser-breaker.tentative.sub.html b/fetch/corb/script-resource-with-json-parser-breaker.tentative.sub.html new file mode 100644 index 00000000000000..cabc7b09c458ca --- /dev/null +++ b/fetch/corb/script-resource-with-json-parser-breaker.tentative.sub.html @@ -0,0 +1,83 @@ + + + + + +
+