Add Cors handling to Blazor UI

This commit is contained in:
2025-04-12 01:15:24 -04:00
parent b0075feee9
commit 0126d9d863
7 changed files with 98 additions and 6 deletions

View File

@@ -1,5 +1,8 @@
**************** PUBLISHING
pi@Dia:~/ARM64/eNavigator $ dotnet publish -c Release
dotnet publish -c Release
I might not understand this all correctly but I got it to work.
when you dotnet publish -c Release
@@ -7,18 +10,19 @@ There will be output here..
/home/pi/Projects/Blazor/eNavigator/eNavigatorUI/bin/Release/net8.0
There is a publish folder as well as a wwroot folder
open the publish folder and then the wwroot folder within
copy the contents of this folder to /var/www/html on the apache server
copy the contents of this (wwroot) folder to /var/www/html on the apache server
sudo cp -r --verbose /home/pi/Media/Boneyard/publish/wwwroot/* .
sudo cp --verbose -r /home/pi/Media/Boneyard/wwwroot/_framework .
now look at the wwwroot folder and notice that there is also a _framework folder here as well
copy this _framework folder to /var/www/html (yes overwriting the previous _framework that you coped)
copy this _framework folder to /var/www/html (yes overwriting the previous _framework that you copied)
restart the apache web server
service apache2 restart
sudo service apache2 restart
goto web site http://www.diversified-software.com
all should be working.
**************************