Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for "Options" http method type #27

Open
Carson-Carlisle-ZocDoc opened this issue Sep 5, 2018 · 1 comment
Open

No support for "Options" http method type #27

Carson-Carlisle-ZocDoc opened this issue Sep 5, 2018 · 1 comment

Comments

@Carson-Carlisle-ZocDoc
Copy link

I am trying to verify that a specific xhr request only happens once. I am making a POST request across domains, which means it sends an OPTIONS request first. When I look at the requests that are returned from browser.getRequests(), I see two requests, but the method on both of them is POST, when the method on the first request should be OPTIONS. Additionally, the response code seems to be the same on both requests, but for OPTIONS our server sends a 204, and for the actual POST, our server sends a 200.

I'd like to be able to see which one is the OPTIONS and which one is the POST, so I can filter out the OPTIONS request in this case.

@chmanie
Copy link
Member

chmanie commented Apr 16, 2019

This is actually a good first issue for anyone who'd like to help out. I'm sorry, I don't have much time these days. I might get to it eventually though. We might be able to detect OPTIONS requests as well but that would require some messing about and testing. In the best case we'd add a test case for this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants