add the custom element package, and add html custom element support:
options.RootComponents.RegisterCustomElement<Counter>("my-counter");
enable CORS
https://www.syncfusion.com/faq/blazor/general/how-do-you-enable-cors-in-a-blazor-server-application
build and deploy website.
on a site that want to use blazor app:
- add required css links
<link href="https://mysite.com/css/site.css" rel="stylesheet"/>
<link href="https://mysite.com/BlazorServer.styles.css" rel="stylesheet"/>
- add any other resource
- add link to the blazor app js
<script src="https://mysite.com/_framework/blazor.server.js"></script>
- add custom element to page