Skip to content
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

Bug: URL -> File does not work #63

Open
gear54rus opened this issue Oct 30, 2023 · 2 comments
Open

Bug: URL -> File does not work #63

gear54rus opened this issue Oct 30, 2023 · 2 comments

Comments

@gear54rus
Copy link

gear54rus commented Oct 30, 2023

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?

image

image

@gear54rus
Copy link
Author

@aanand any chance for mainline merge? I am using forked version with my code and it works

@shivaRamdeen
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants