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

Cant trace "METHOD: OPTIONS" XHR request #5792

Closed
64chevy opened this issue Mar 11, 2021 · 1 comment
Closed

Cant trace "METHOD: OPTIONS" XHR request #5792

64chevy opened this issue Mar 11, 2021 · 1 comment

Comments

@64chevy
Copy link

64chevy commented Mar 11, 2021

Hello, I have been trying to log the ajax request sent with OPTIONS method which is sent by clicking a button, when you click the button it first sends a request with OPTIONS method and it returns some headers in response, then another POST request is sent right away and then gives the final response in json. I can log the POST req but not OPTIONS

page.route('**', (route, request) => {
	if(request.url().includes("/api/run/")) {
		console.log(request.url(), request.method());
	}
	route.continue();
});
@64chevy
Copy link
Author

64chevy commented Mar 11, 2021

Solved it.

@64chevy 64chevy closed this as completed Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant