Skybrud.Umbraco.Spa v3.0.0-beta006
Pre-releaseInstallation
Changelog
-
Updated
SpaPublishedContentContractResolver
to support serializing instances ofHtmlString
andIHtmlString
(see 962b728 and 1d38052)
By default, JSON.net will serialize instances to an empty JSON object. With this release and when usingSpaPublishedContentContractResolver
, instances will now be serialized to a string with the actual HTML value. -
Added null check because
context.Response
may benull
in some cases when using theAccessControlAllowOrigin
attribute (see 64eba8c)
If an API method, where theAccessControlAllowOrigin
attribute is used, throws an exception,context.Response
will benull
. With this release, using the attribute will no longer trigger a null reference exception. -
Value used in
AccessControlAllowOriginAtttibute
class shouldn't be hardcoded (see 996f942)
A constructor overload allows developers to set their own value for the header, but the value used when setting the header was still hardcoded to*
. With this release, the used value now reflects the value set via the constructor. -
Added some error handling to the
SpaRequestHelper.GetResponse
method (see e11c692)
If debug is enabled andtext/html
is present in the accept header of the request, the SPA API will now return a friendly HTML error page if the API throws an exception.