| <p>Test that custom headers are not sent with OPTIONS preflight request.</p> |
| var req = new XMLHttpRequest; |
| req.open("GET", "/resources/reset-temp-file.php?filename=access-control-preflight-headers-sync-status", false); |
| var req = new XMLHttpRequest; |
| req.open("GET", "http://localhost:8000/xmlhttprequest/resources/no-custom-header.php?filename=access-control-preflight-headers-sync-status", false); |
| req.setRequestHeader("X-Custom-Header", "foobar"); |
| document.write("<xmp>" + req.responseText + "</xmp>"); |
| document.write("<xmp>" + ex + "</xmp>"); |