<head>
<script>
if (window.testRunner) {
    testRunner.waitUntilDone();
    testRunner.dumpAsText();
}
</script>
</head>
<body>

This test is designed to work only when loaded from http://127.0.0.1:8000

<form id='testForm' method='POST'>
<input id='redircode' type='hidden' name='redircode' value='302'>
</form>

<script>

var form = document.getElementById('testForm');
form.action = "/resources/redirect.py?code=302&url=http://localhost:8000/security/resources/cors-post-redirect-target.py";
form.submit();
 
</script>
</body>
