Only allow request that use custom protocol
Is your feature request related to a problem? Please describe.
I want to only allow webview requests that use my custom protocol, but couldn't find a way to block other sites/origins.
Mainly I want to ensure that no outside JS can ever be loaded, as it would expose the IPC handler.
I know that with good practices this shouldn't be a problem, but it would make a nice safeguard.
Describe the solution you'd like
A method that filters all requests, like custom protocol but for all requests, or a way to block any that don't match the custom protocol.
Describe alternatives you've considered
I tried using with_navigation_handler and with_new_window_req_handler, while they stop navigations (as the name suggests) they don't prevent other requests.
Would you want to assign yourself to implement this feature?
- [ ] Yes
- [x] No