diff --git a/preload/preload-invalid-resources.html b/preload/preload-invalid-resources.html new file mode 100644 index 00000000000000..08e8d3f548c401 --- /dev/null +++ b/preload/preload-invalid-resources.html @@ -0,0 +1,34 @@ + + + + +
+ + \ No newline at end of file diff --git a/preload/preload-resource-match.https.sub.html b/preload/preload-resource-match.https.sub.html new file mode 100644 index 00000000000000..0b5fd3852a2ca6 --- /dev/null +++ b/preload/preload-resource-match.https.sub.html @@ -0,0 +1,158 @@ + + + + + \ No newline at end of file diff --git a/preload/resources/echo-with-cors.py b/preload/resources/echo-with-cors.py new file mode 100644 index 00000000000000..06d30c303c601c --- /dev/null +++ b/preload/resources/echo-with-cors.py @@ -0,0 +1,8 @@ +def main(request, response): + response.headers.set(b"Content-Type", request.GET.first(b"type")) + origin = request.headers.get('Origin') + if origin is not None: + response.headers.set(b"Access-Control-Allow-Origin", origin) + response.headers.set(b"Access-Control-Allow-Credentials", b"true") + + return request.GET.first(b"content")