Intercept requests
royallthefourth opened this issue · 0 comments
royallthefourth commented
When active, check for the current request's domain in the domain list. If present, replace it with whatever record is in the config.
-
onBeforeRequest
: check for presence ofrequestDetails.url
instorage.local
- If present, add
requestId: originalUrl
pair to storage - Return object with
redirectUrl
-
onBeforeSendHeaders
: ifrequestId
is present in storage, resethost
header to value stored for thisrequestId