Skip to content

A short sample trying to use InteractiveAuto and prepare it for both InteractiveServer and InteractiveWebAssembly modes

License

Notifications You must be signed in to change notification settings

SpaceShot/InteractiveAutoSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InteractiveAutoSample

A short sample trying to use InteractiveAuto and prepare it for both InteractiveServer and InteractiveWebAssembly modes

The project should build and run for .NET 8 RC2. It runs because the WebScrape sample component is not being used on the Home page.

The WebScrape component wants to call back to the server's exposed endpoint so it can make the call out to the internet. While not shown in this sample, it is presumed that Client project components must assume they have little protection against snooping into code so this could just as easily be a sensitive call to a back end api with authorization required. Perhaps we look for a Backend For Frontend approach where the Blazor app calls back into the same server with the crucial authentication information in a strict https cookie, and then the server is capable of making the authenticated requests on its behalf.

Uncomment the following in AutoRenderModeServices\AutoRenderModeServices.Client\Pages\Home.razor

@* <WebScrape></WebScrape> *@

And now the app should break complaining that the URL is invalid without a base address.

About

A short sample trying to use InteractiveAuto and prepare it for both InteractiveServer and InteractiveWebAssembly modes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published