Open gear54rus opened 9 months ago
@aanand any chance for mainline merge? I am using forked version with my code and it works
Temporary hack for anyone experiencing this. Install python if you don't have it and run the following:
cd <DIR_WITH_FILE_TO_SERVE>
python -m http.server 8000
This will give you a localhost server to access your file. Note you may need to allow mixed content in chrome for http content to be loaded.
According to API docs for
onBeforeRequest
, returning{cancel: true}
will cancel the request.Yet this is exactly what we're doing when using
URL -> File
mode in replaceContent the result of which gets passed to onBeforeRequest.There seems to be a logical error here? And indeed the scenario doesn't work for me currently. Am I missing something?