wry icon indicating copy to clipboard operation
wry copied to clipboard

Only allow request that use custom protocol

Open JasperVanEsveld opened this issue 2 years ago • 0 comments

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

JasperVanEsveld avatar Mar 15 '23 22:03 JasperVanEsveld