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

RegisterCustomSchemeHandler won't let do fetch and XMLHttpRequest requests. #232

Open
jakerdy opened this issue Dec 19, 2024 · 0 comments
Open

Comments

@jakerdy
Copy link

jakerdy commented Dec 19, 2024

Hi,

I am evaluating Photino as a replacement for Electron. While testing how I could wrap our RPC implementation using Photino APIs, I encountered a problem with CustomSchemeHandlers.

For "heavy" messages, we used HTTP requests. However, with Photino, I thought custom URLs like "rpc://my-method" could be used to avoid passing data through the network. But when my JavaScript code tries to fetch data using these custom URLs, it simply doesn't work.

This issue is easily reproducible. Just create a template project, open the developer tools, and run this line:

await fetch("app://asdf.txt");

The same issue occurs with XMLHttpRequest.

Should this even work for fetch, or is it just a feature for ?

I am running on Windows 11 with .NET 9.0 and the latest Photino version (3.2.3).

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

1 participant