Skip to content

Cant trace "METHOD: OPTIONS" XHR request #5792

@64chevy

Description

@64chevy

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();
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions