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

Enable BlazorAppScheme to be a configurable value #92

Open
trevjacobson opened this issue Aug 29, 2023 · 1 comment
Open

Enable BlazorAppScheme to be a configurable value #92

trevjacobson opened this issue Aug 29, 2023 · 1 comment
Labels
question Further information is requested

Comments

@trevjacobson
Copy link

trevjacobson commented Aug 29, 2023

Looking to be able to override the PhotinoWebViewManager.BlazorAppScheme value to be file (and in turn affecting PhotinoWebViewManager.AppBaseUri) which will enable file system access from the webview process, not limited to the wwwroot published folder for an offline desktop application.

@philippjbauer
Copy link
Member

@trevjacobson Can you provide some more information on your use case? Usually, direct access from a browser engine is not permitted due to the sandbox they run in. Loading the index.html using the file:// scheme is not supported.

You can use C# to open and manipulate files and select files for this purpose using the typical JS APIs.

Using the file scheme as you (seem) to propose could also create issues with differences in file path structure across operating systems. E.g. Windows using something like C:\.... while UNIX type OSs are using /home/username/...

https://stackoverflow.com/a/12711835
https://stackoverflow.com/a/372333

@philippjbauer philippjbauer added the question Further information is requested label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants