Allow local files (PWA app) in WebView (CORS)
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 297
Description
### Description
Hello!
I am not sure if it yet possible or is it just a CORS issue (https://github.com/dotnet/maui/issues/7920)
**The Problem**
I would like to wrap my PWA and use native capabilities.
I create a blank new MAUI native app, with 1 WebView.
I put my local files into Asset folder and then can load index.html into WebView.
But if want to use external javascript files or libs, i get CORS block (request block from https://0.0.0.0).
**Why not MAUI Blazor**
Blazor is a good example of what i can create with HTML/JS/C#, but what if i want to use different frameworks or create my
simple PWA without any overhead.
**PWA in Google Store**
I can publish PWA to Google, but i want to use hybrid app for additional options and i can't publish PWA to IOS (i can, but i need to wrap it again with another toolkits).
### Public API Changes
Allow any requests to local files (shiped in assets folder) in WebView.
### Intended Use-Case
PWA
Contributor guide
Assessment
This issue has not been assessed yet.