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