public sealed record AssetRoutingOptions : IEquatable<AssetRoutingOptions> Selects how a host adapter maps request paths to manifest assets. The Runic Assets host adapters share these rules and defaults, so one archive routes identically on every host. Disable both options for exact routing, where only declared manifest paths resolve.
Constructors
AssetRoutingOptions
public AssetRoutingOptions() No documentation.
Properties
ContentSecurityPolicy
public string? ContentSecurityPolicy { get; init; } Gets the Content-Security-Policy header value that the host adapters send with every text/html asset, or null, the default, for none. Other assets are sent without it.
Exceptions
ArgumentExceptionThe value is empty or contains a character that a header cannot carry.
Remarks
The value is the policy as it appears in the header, such as default-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'. It must be printable ASCII: a carriage return, line feed, NUL or other control character throws ArgumentException. Runic Desktop sends its own frame-ancestors policy as a second header, and a browser enforces both. The archive does not carry a policy: script and connect origins are the application's to choose.
EnableSinglePageApplicationFallback
public bool EnableSinglePageApplicationFallback { get; init; } Gets whether a missing path whose last segment has no file extension resolves to the manifest entry point, so client-side routes survive a reload. Defaults to true.
ServeEntryPointAtRoot
public bool ServeEntryPointAtRoot { get; init; } Gets whether an empty path or / resolves to the manifest entry point. Defaults to true.