Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

Sveltekit static app in webview2 .NET form "tauri like app but in .NET"

$
0
0

I have a project that uses .NET 8 Windows forms with webview2 and a sveltekit app with a static adapter

this is the link to the repo

In the dev mode when I start the dev server in http:/localhost:3005 with the .net form in debug mode, everything works fine, link to image of the app in dev server

but when I tried in the release mode after I built everything, I had a lot of issues like:

  • I tried to make winform like this, but i got these cors error and URL to the scripts are not correct here

  • then I tried to disable cors "web security" to fix that but I got this error

  • then to solve the issue I used virtual hostname to folder mapping method like this, but I got this error, then when I add /index.html to the virtual hostname i got this error

from here I dont know to what to do to solve this issue and I dont want to use localhost just like tauri, any suggestions


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>