diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index d2036b53321f..4280922f913c 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -300810,6 +300810,11 @@ {} ] ], + "x-frame-options/support/redirect.py": [ + [ + {} + ] + ], "x-frame-options/support/xfo.py": [ [ {} @@ -375117,6 +375122,12 @@ {} ] ], + "x-frame-options/redirect.sub.html": [ + [ + "/x-frame-options/redirect.sub.html", + {} + ] + ], "x-frame-options/sameorigin.sub.html": [ [ "/x-frame-options/sameorigin.sub.html", @@ -616382,6 +616393,10 @@ "5c266799477994fe820a244fd6b5b6e7822748a0", "testharness" ], + "x-frame-options/redirect.sub.html": [ + "df0a1d522288313f4e63e6700a840f9d70622679", + "testharness" + ], "x-frame-options/sameorigin.sub.html": [ "93498833866f7f7084c08cc22aec78a31ef1721b", "testharness" @@ -616394,6 +616409,10 @@ "8cfd9ef877a813898ea2f5741ffc56ae1c6f95dc", "support" ], + "x-frame-options/support/redirect.py": [ + "195bea24439940535974f3e7f6cd000e7285c8ea", + "support" + ], "x-frame-options/support/xfo.py": [ "722b135e1633e63fbfcb06bca4759a9568a84ee8", "support" diff --git a/testing/web-platform/tests/x-frame-options/redirect.sub.html b/testing/web-platform/tests/x-frame-options/redirect.sub.html new file mode 100644 index 000000000000..0bc708b358cb --- /dev/null +++ b/testing/web-platform/tests/x-frame-options/redirect.sub.html @@ -0,0 +1,19 @@ + + + + + + diff --git a/testing/web-platform/tests/x-frame-options/support/redirect.py b/testing/web-platform/tests/x-frame-options/support/redirect.py new file mode 100644 index 000000000000..0addf2056cbb --- /dev/null +++ b/testing/web-platform/tests/x-frame-options/support/redirect.py @@ -0,0 +1,4 @@ +def main(request, response): + response.status = 302 + response.headers.set("X-Frame-Options", request.GET.first("value")) + response.headers.set("Location", request.GET.first("url"))