-
Notifications
You must be signed in to change notification settings - Fork 41
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
Implement route(url, handler[, options])
#10
Comments
BrowserContext.route(url, handler[, options])
Relatedly, I think this should be exposed on Page as well. |
@tom-miseur: This is essentially a way to intercept requests before they get sent, which is useful for setting URL/route-specific headers. With page.setExtraHttpHeaders. You often run into CORS issues as the headers are applied across all requests. |
BrowserContext.route(url, handler[, options])
route(url, handler[, options])
Wondering if this will also be useful in intercepting requests to favico and aborting them so the logs are not filled with 404s for those calls ;) |
Add support for
BrowserContext.route(url, handler[, options])
, to enable request interception allowing any request initiated in the browser context to be modified. A request with a matching URL will stall until continued, fulfilled or aborted.Relevant links:
Tasks:
Route
in the mapping layer.The text was updated successfully, but these errors were encountered: