Substantive.Blazor.WebEmbedded 9.4.0-build20251226r1
WebEmbedded is a library for embedded content that loads another web content within the document.
Installation
1. Add configuration
Add below configuration into <head> section of html page to allow displaying content from outside.
<meta http-equiv="Content-Security-Policy"
content="base-uri 'self';
default-src 'self' youtube.com www.youtube.com youtu.be www.youtu.be facebook.com www.facebook.com twitter.com *.twitter.com un.org www.un.org;
img-src data: https:;
object-src 'none';
script-src 'self' 'unsafe-eval' 'unsafe-inline';
style-src 'self' 'unsafe-inline';
upgrade-insecure-requests;" />
2. Import the components to the _Import.razor
@using Substantive.Blazor.WebEmbedded;
Usage
Embedded IFrame
<EmbeddedIFrame Src="https://www.un.org" Width="100%" Height="500px" AllowFullScreen="true" />
Embedded Youtube
<EmbeddedYouTube Src="https://www.youtube.com/embed/gLZPCtd1mo4" Width="640px" Height="360px" />
Embedded Facebook Page
<EmbeddedFacebook AppId="1879099438996760" PageUsername="unitednations" Width="300" Height="300" />
Embedded Twitter
<EmbeddedTwitter>
<a class="twitter-timeline" data-lang="en" data-height="500" href="https://twitter.com/UN?ref_src=twsrc%5Etfw">Tweets by UN</a>
</EmbeddedTwitter>
FAQs and Troubleshoots
Question1
Answer
Question2
Answer
Showing the top 20 packages that depend on Substantive.Blazor.WebEmbedded.
| Packages | Downloads |
|---|---|
|
Substantive.Metapackage.BlazorComponents
A metapackage contains all Blazor components.
|
5 |
|
Substantive.Metapackage.BlazorComponents
A metapackage contains all Blazor components.
|
6 |
|
Substantive.Metapackage.BlazorComponents
A metapackage contains all Blazor components.
|
7 |
|
Substantive.Metapackage.BlazorComponents
A metapackage contains all Blazor essential building blocks. It packed standalone Blazor components and extensions that often use such as Navigation, Exception Handling, Localization, etc,.
|
7 |
.NET 10.0
- Substantive.Blazor.JSInterop (>= 9.4.0-build20251226R1)
- Substantive.ComponentModel.Blazor (>= 9.4.0-build20251226R1)
- Substantive.WebUtilities (>= 9.17.0-build20251226R1)